This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
libstdc++ string(const char*, size_t, size_t)
- To: gcc-bugs at gcc dot gnu dot org
- Subject: libstdc++ string(const char*, size_t, size_t)
- From: Andy Rysin <arysin at yahoo dot com>
- Date: Wed, 19 Jan 2000 16:19:01 -0800 (PST)
Hello all,
Is it bug of libstdc++ in string::string(const char*,
size_t, size_t) constructor, when I pass it
unterminated string (w/out '\0' at the end) it tries
to calculate the length and causes segfault?
Actually I pass the length of my string to take.
I am using egcs-1.1.2
Interesting that Borland C++ Builder make the same
segfault in Win32 with it STL library.
Thanks in advance,
Andy
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com