GNU bug report logs -
#8751
24.0.50; CCL is broken
Previous Next
Reported by: Kazuhiro Ito <kzhr <at> d1.dion.ne.jp>
Date: Sat, 28 May 2011 12:51:02 UTC
Severity: normal
Found in version 24.0.50
Done: Paul Eggert <eggert <at> cs.ucla.edu>
Bug is archived. No further changes may be made.
Full log
Message #11 received at 8751 <at> debbugs.gnu.org (full text, mbox):
Paul, can you take a look at this? It seems this was introduced very
recently, probably by
* ccl.c (ccl_driver): Redo slightly to avoid the need for 'unsigned'.
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. (Bug#8719)
-- Stefan
>>>>> "Kazuhiro" == Kazuhiro Ito <kzhr <at> d1.dion.ne.jp> writes:
> Below code raises error "Error in CCL program at 4th code" on trunk.
> (progn
> (define-ccl-program ccl-test
> '(1 (loop
> (read r0)
> (write-repeat r0))))
> (ccl-execute-on-string 'ccl-test (make-vector 9 0) "_"))
> --
> Kazuhiro Ito
This bug report was last modified 13 years and 358 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.