Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
4.2.1
-
None
-
Patch Available
-
Incorrect Behavior
Description
Here is the assertion...
..\..\..\tests\src\printf.cpp:486: char *__cdecl _rw_bufcat(struct Buffer &,const char *,unsigned int): Assertion '0 == memcmp (*buf.pbuf + *buf.pbufsize, guard, guardsize)' failed.
Here is a testcase...
#include <rw_printf.h> #include <string.h> #include <stdlib.h> int main (int argc, char* argv[]) { const char* s = 1 < argc ? argv [1] : "bug-zapper"; char buffer [4]; char *buf = buffer; size_t bufsize = sizeof buffer; rw_asnprintf (&buf, &bufsize, "%s", s); if (buf != buffer) free (buf); return 0; }
Attachments
Issue Links
- blocks
-
STDCXX-858 [Windows] many locale tests failing with exit code 3
- Resolved