This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/10810] gcc-3.3 fails make check: buffer overrun in test_demangle.c
- From: "dave at hiauly1 dot hia dot nrc dot ca" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 May 2003 12:14:08 -0000
- Subject: [Bug other/10810] gcc-3.3 fails make check: buffer overrun in test_demangle.c
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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.