]> git.eshelyaron.com Git - emacs.git/commit
Fix integer overflow in internal_self_insert
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 26 Mar 2020 01:20:31 +0000 (18:20 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 26 Mar 2020 01:38:07 +0000 (18:38 -0700)
commit98546d9c823db544b62bdba0bb388816ea6dd342
treefe46e55c6146b8211ae08a2894bdde892691527a
parente4b6151ff119f36c64d3653b56f761fcdfe47fd3
Fix integer overflow in internal_self_insert

* src/cmds.c (internal_self_insert): Avoid undefined behavior
on integer overflow by using saturated add.
src/cmds.c