aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
authorPaul Eggert2011-07-16 20:00:19 -0700
committerPaul Eggert2011-07-16 20:00:19 -0700
commitb13995dbbdab5254bc77ad5ed7318db9797be321 (patch)
treea2c8aefa66dfa3d78ce0c87b09769ac54827e916 /src/coding.c
parent8d576a545d08182fae5c7d705a53da2a84e0d85a (diff)
downloademacs-b13995dbbdab5254bc77ad5ed7318db9797be321.tar.gz
emacs-b13995dbbdab5254bc77ad5ed7318db9797be321.zip
* keyboard.c: Overflow, signedness and related fixes.
(make_lispy_movement): Use same integer type in forward decl that is used in the definition. (read_key_sequence, keyremap_step): Change bufsize argument back to int, undoing my 2011-03-30 change. We prefer signed types, and int is wide enough here. (parse_tool_bar_item): Don't assume tool_bar_max_label_size is less than TYPE_MAXIMUM (EMACS_INT) / 2. Don't let the label size grow larger than STRING_BYTES_BOUND. Use ptrdiff_t for Emacs string length, not size_t. Use ptrdiff_t for index, not int. (keyremap_step, read_key_sequence): Redo bufsize check to avoid possibility of integer overflow.
Diffstat (limited to 'src/coding.c')
0 files changed, 0 insertions, 0 deletions