mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
1e5683b167
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.
6 lines
280 B
Plaintext
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.
|