[Bug other/10810] gcc-3.3 fails make check: buffer overrun in test_demangle.c
dave@hiauly1.hia.nrc.ca
gcc-bugzilla@gcc.gnu.org
Sun May 25 13:09:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10810
------- Additional Comments From dave@hiauly1.hia.nrc.ca 2003-05-25 12:14 -------
Subject: Re: [Bug other/10810] gcc-3.3 fails make check: buffer overrun in tes
> by one character iff the input line is exactly as long as the buffer. The
> correct fix, then, would be this change, somewhat below:
>
> - if (count >= alloc)
> + if (count + 1 >= alloc)
This works. Tested on hppa2.0-hp-hpux11.11 and hppa64-hp-hpux11.11.
Dave
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the Gcc-bugs
mailing list