stdcxx-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Travis Vitek (JIRA)" <j...@apache.org>
Subject [jira] Created: (STDCXX-857) unexpected assertion from _rw_bufcat
Date Sat, 12 Apr 2008 01:29:04 GMT
unexpected assertion from _rw_bufcat
------------------------------------

                 Key: STDCXX-857
                 URL: https://issues.apache.org/jira/browse/STDCXX-857
             Project: C++ Standard Library
          Issue Type: Bug
          Components: Test Driver
    Affects Versions: 4.2.1
            Reporter: Travis Vitek
            Assignee: Travis Vitek
             Fix For: 4.2.1


Here is a testcase.

{noformat}
#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;
}
{noformat}


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message