This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/28759] stringbuf writes beyond external buffer given via pubsetbuf()
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Aug 2006 01:11:28 -0000
- Subject: [Bug libstdc++/28759] stringbuf writes beyond external buffer given via pubsetbuf()
- References: <bug-28759-13108@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pinskia at gcc dot gnu dot org 2006-08-17 01:11 -------
The other thing is that sizeof(buf) will get you sizeof(char*) which is most
likely not what you wantted anyways.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28759