]> git.eshelyaron.com Git - emacs.git/commit
Check for integer overflow in xbm images
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 6 Jul 2017 01:58:11 +0000 (18:58 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 6 Jul 2017 01:59:31 +0000 (18:59 -0700)
commit018600f896fbed768e583f6b8ee7fbae713367d1
treed1e450e753f1d76c4c848330e80c69b6c39f80ea
parentd6662694d05be03fdd070353637dd22a324c8b7a
Check for integer overflow in xbm images

* src/image.c (XBM_TK_OVERFLOW): New constant.
(xbm_scan): Check for integer overflow instead of relying on
undefined behavior.  Check that octal digits are actually octal.
src/image.c