Message170383
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); |
|
Date |
User |
Action |
Args |
2012-09-12 14:19:55 | skrah | set | recipients:
+ skrah, georg.brandl, vstinner, christian.heimes |
2012-09-12 14:19:54 | skrah | set | messageid: <1347459594.84.0.59903944878.issue15930@psf.upfronthosting.co.za> |
2012-09-12 14:19:54 | skrah | link | issue15930 messages |
2012-09-12 14:19:53 | skrah | create | |
|