tor/changes/bug5909
Nick Mathewson 1e5683b167 Be more careful calling wcstombs
The function is not guaranteed to NUL-terminate its output.  It
*is*, however, guaranteed not to generate more than two bytes per
multibyte character (plus terminating nul), so the general approach
I'm taking is to try to allocate enough space, AND to manually add a
NUL at the end of each buffer just in case I screwed up the "enough
space" thing.

Fixes bug 5909.
2012-06-07 11:09:38 -04:00

6 lines
280 B
Plaintext

o Major bugfixes:
- When building Tor on Windows with -DUNICODE (not default),
ensure that error messages, filenames, and DNS server names are
always NUL-terminated when we convert them to a single-byte
encoding. Fixes bug 5909; bugfix on 0.2.2.16-alpha.