This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author skrah
Recipients christian.heimes, georg.brandl, skrah, vstinner
Date 2012-09-12.14:19:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1347459594.84.0.59903944878.issue15930@psf.upfronthosting.co.za>
In-reply-to
Content
I'm convinced that this is a false positive:

    size_t wcstombs(char *dest, const wchar_t *src, size_t n);

We have: 

     1) buf[0] = *wstr and buf[1] = 0.

So:

     2) wcstombs(NULL, buf, 0) <= 4.


Then the man page says:

   "... the  programmer  should  make  sure  n  is  greater  or  equal  to
    wcstombs(NULL,src,0)+1."


In this case, wcstombs(NULL, buf, 0) + 1 <= 5 and we call:

    wcstombs(char *dest, const wchar_t *src, 16);
History
Date User Action Args
2012-09-12 14:19:55skrahsetrecipients: + skrah, georg.brandl, vstinner, christian.heimes
2012-09-12 14:19:54skrahsetmessageid: <1347459594.84.0.59903944878.issue15930@psf.upfronthosting.co.za>
2012-09-12 14:19:54skrahlinkissue15930 messages
2012-09-12 14:19:53skrahcreate