This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

libstdc++ string(const char*, size_t, size_t)


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]