Minor integer overflow fixes.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 3 Dec 2013 21:37:41 +0000 (13:37 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 3 Dec 2013 21:37:41 +0000 (13:37 -0800)
* window.c (Fset_window_new_pixel): Don't let new_pixel go negative.
This improves on the previous fix to this function.
(window_resize_check): When summing up pixel counts, don't rely on
undefined behavior if the sum overflows.

Fixes: debbugs:16033


No differences found