]> git.eshelyaron.com Git - emacs.git/commit
* xterm.c: Integer and memory overflow issues.
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 29 Jul 2011 05:12:49 +0000 (22:12 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 29 Jul 2011 05:12:49 +0000 (22:12 -0700)
commit3256efcee3a7c3bf63e62666715455e834d19ea0
tree1b71292793d856130d2e51f798aa7eabba41b484
parent1d526e2f33eb2615944717c9231bc1d27aef1117
* 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).
src/ChangeLog
src/xterm.c