diff options
| author | Paul Eggert | 2011-05-22 23:50:03 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-05-22 23:50:03 -0700 |
| commit | 305696990bd24e602e83444651fbb1ed8819fe14 (patch) | |
| tree | 47ae4fc861057181e147caea99fa47df80eafe03 /src/ChangeLog | |
| parent | c11285dca1ee2896b487fe03408a4c7c356b6d5b (diff) | |
| download | emacs-305696990bd24e602e83444651fbb1ed8819fe14.tar.gz emacs-305696990bd24e602e83444651fbb1ed8819fe14.zip | |
ccl: add integer overflow checks
* ccl.c (CCL_CODE_MAX, GET_CCL_RANGE, GET_CCL_CODE, GET_CCL_INT):
(IN_INT_RANGE): New macros.
(ccl_driver): Use them to check for integer overflow when
decoding a CCL program. Many of the new checks are whether XINT (x)
fits in int; it doesn't always, on 64-bit hosts. The new version
doesn't catch all possible integer overflows, but it's an
improvement.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index f6a6c21c25c..29595113f1b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,14 @@ | |||
| 1 | 2011-05-23 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-05-23 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | ccl: add integer overflow checks | ||
| 4 | * ccl.c (CCL_CODE_MAX, GET_CCL_RANGE, GET_CCL_CODE, GET_CCL_INT): | ||
| 5 | (IN_INT_RANGE): New macros. | ||
| 6 | (ccl_driver): Use them to check for integer overflow when | ||
| 7 | decoding a CCL program. Many of the new checks are whether XINT (x) | ||
| 8 | fits in int; it doesn't always, on 64-bit hosts. The new version | ||
| 9 | doesn't catch all possible integer overflows, but it's an | ||
| 10 | improvement. | ||
| 11 | |||
| 3 | * alloc.c (make_event_array): Use XINT, not XUINT. | 12 | * alloc.c (make_event_array): Use XINT, not XUINT. |
| 4 | There's no need for unsigned here. | 13 | There's no need for unsigned here. |
| 5 | 14 | ||