diff options
| author | Paul Eggert | 2011-07-28 18:22:19 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-07-28 18:22:19 -0700 |
| commit | fee31f82d5279a6faeb2d4cef808e9d7fce2f210 (patch) | |
| tree | 1bcce2fe8f01c58d4cd8958629254b894d622371 /src/termcap.c | |
| parent | fe6442b1151a0f4021181e968479459f50df63f1 (diff) | |
| download | emacs-fee31f82d5279a6faeb2d4cef808e9d7fce2f210.tar.gz emacs-fee31f82d5279a6faeb2d4cef808e9d7fce2f210.zip | |
* term.c: Integer and memory overflow issues.
(max_frame_lines): Remove; unused.
(encode_terminal_src_size, encode_terminal_dst_size): Now ptrdiff_t,
not int.
(encode_terminal_code, calculate_costs): Check for size
calculation overflow.
(encode_terminal_code): Use ptrdiff_t, not int, to record glyph
table lengths and related sizes. Don't update size until alloc
done. Redo calculations to avoid overflow.
(calculate_costs): Don't bother calling xmalloc when xrealloc will do.
Diffstat (limited to 'src/termcap.c')
0 files changed, 0 insertions, 0 deletions