diff options
| author | Paul Eggert | 2011-07-28 22:12:49 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-07-28 22:12:49 -0700 |
| commit | 3256efcee3a7c3bf63e62666715455e834d19ea0 (patch) | |
| tree | 1b71292793d856130d2e51f798aa7eabba41b484 /src/buffer.c | |
| parent | 1d526e2f33eb2615944717c9231bc1d27aef1117 (diff) | |
| download | emacs-3256efcee3a7c3bf63e62666715455e834d19ea0.tar.gz emacs-3256efcee3a7c3bf63e62666715455e834d19ea0.zip | |
* xterm.c: Integer and memory overflow issues.
(x_color_cells, handle_one_xevent, x_term_init):
Check for size calculation overflow.
(x_color_cells): Don't store size until memory allocation succeeds.
(handle_one_xevent): Use ptrdiff_t, not int, for byte counts.
(x_term_init): Don't assume length fits in int (sprintf is limited
to int size).
Diffstat (limited to 'src/buffer.c')
0 files changed, 0 insertions, 0 deletions