diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2021-01-01 12:55:35 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2021-01-01 12:58:17 -0800 |
commit | a1f603f0a388a519771ef77ae18f44a448a81c5a (patch) | |
tree | 516d84dfcb40f3c03a00e56e9ca66ee28b9df0b5 /test/lisp/emacs-lisp | |
parent | 9076a631fe331763414a5d323496846d563ccaa0 (diff) | |
download | emacs-a1f603f0a388a519771ef77ae18f44a448a81c5a.tar.gz emacs-a1f603f0a388a519771ef77ae18f44a448a81c5a.tar.bz2 emacs-a1f603f0a388a519771ef77ae18f44a448a81c5a.zip |
Add overflow check for INPUT_EVENT_POS_MIN
* src/keyboard.c (INPUT_EVENT_POS_MIN): Don’t assume (-1 -
INPUT_EVENT_POS_MAX) fits into ptrdiff_t. This fixes a
purely-theoretical problem that cannot occur on two’s-complement
arithmetic. The Solaris 10 compiler still complains incorrectly,
but oh well.
Diffstat (limited to 'test/lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions