[Bug other/17898] Incorrect usage of isdigit, etc.

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Oct 8 20:48:00 GMT 2004


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-08 20:48 -------
./libobjc/gc.c:  while (isdigit (*++type))
is not wrong because we cannot get greater than 127 in type at all (this is an encoding which does not 
use non ascii characters).

And these cannot recieve characters greater than 127 either (unless something is wrong with your 
machine):
./boehm-gc/os_dep.c:    while (isspace(c)) c = stat_buf[buf_offset++];
./boehm-gc/os_dep.c:    while (!isspace(c)) c = stat_buf[buf_offset++];
./boehm-gc/os_dep.c:    while (isspace(c)) c = stat_buf[buf_offset++];
./boehm-gc/os_dep.c:    while (isdigit(c)) {

Also :
./boehm-gc/cord/de.c:    } else if (c < 0x100 && isdigit(c)){
is right.

Also it is 4.4 BSD extension to accept greater than the 0xFF.

And most of these come from up stream projects.
libltdl/ltdl.c belongs to libtool, report it to them.



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17898



More information about the Gcc-bugs mailing list