aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorPaul Eggert2011-07-28 22:12:49 -0700
committerPaul Eggert2011-07-28 22:12:49 -0700
commit3256efcee3a7c3bf63e62666715455e834d19ea0 (patch)
tree1b71292793d856130d2e51f798aa7eabba41b484 /src/alloc.c
parent1d526e2f33eb2615944717c9231bc1d27aef1117 (diff)
downloademacs-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/alloc.c')
0 files changed, 0 insertions, 0 deletions