cuneiform team mailing list archive
-
cuneiform team
-
Mailing list archive
-
Message #00711
[Bug 655821] [NEW] infinite loop if char is unsigned
Public bug reported:
make_limits function (Kern/rstr/src/cutpoint.c) falls into an infinite
loop if the "char" type is unsigned. (Whether it is signed or unsigned
is implementation defined, and it's in fact unsigned by default on some
architectures.)
Because there are probably many other places where it is assumed thar
"char" is signed, I propose the following work-around:
if(CMAKE_COMPILER_IS_GNUCC)
add_definitions("-fsigned-char")
endif()
** Affects: cuneiform-linux
Importance: Undecided
Status: New
--
infinite loop if char is unsigned
https://bugs.launchpad.net/bugs/655821
You received this bug notification because you are a member of Cuneiform
Linux, which is the registrant for Cuneiform for Linux.
Status in Linux port of Cuneiform: New
Bug description:
make_limits function (Kern/rstr/src/cutpoint.c) falls into an infinite loop if the "char" type is unsigned. (Whether it is signed or unsigned is implementation defined, and it's in fact unsigned by default on some architectures.)
Because there are probably many other places where it is assumed thar "char" is signed, I propose the following work-around:
if(CMAKE_COMPILER_IS_GNUCC)
add_definitions("-fsigned-char")
endif()
Follow ups
References