Message170377
buf[1] contains NUL if SIZE_OF_WCHAR_T is 4.
The man page says:
size_t wcstombs(char *dest, const wchar_t *src, size_t n)
The conversion can stop for three reasons:
3. The wide-character string has been completely converted, including the terminating L'\0'. In
this case the conversion ends in the initial state. The number of bytes written to dest, exclud-
ing the terminating '\0' byte, is returned.
To me this sounds like there cannot be an invalid write. |
|
Date |
User |
Action |
Args |
2012-09-12 13:09:55 | skrah | set | recipients:
+ skrah, georg.brandl, vstinner, christian.heimes |
2012-09-12 13:09:55 | skrah | set | messageid: <1347455395.18.0.0515260553686.issue15930@psf.upfronthosting.co.za> |
2012-09-12 13:09:34 | skrah | link | issue15930 messages |
2012-09-12 13:09:33 | skrah | create | |
|