]> git.ipfire.org Git - thirdparty/tor.git/commit
Resolve crash caused by format_helper_exit_status changes in #5557
authorNick Mathewson <nickm@torproject.org>
Sat, 23 Jun 2012 19:30:01 +0000 (15:30 -0400)
committerNick Mathewson <nickm@torproject.org>
Sat, 23 Jun 2012 19:32:04 +0000 (15:32 -0400)
commitb1ad1a1d0266a20bb0dac15e65abe7b65a74e8a0
treef8199dbd96fcd0e613abcfc19bb54d46819e4ad9
parentd0243e82cfcdf6684283c37f20db2d999740bdf3
Resolve crash caused by format_helper_exit_status changes in #5557

Because the string output was no longer equal in length to
HEX_ERRNO_SIZE, the write() call would add some extra spaces and
maybe a NUL, and the NUL would trigger an assert in
get_string_from_pipe.

Fixes bug 6225; bug not in any released version of Tor.
src/common/util.c
src/common/util.h
src/test/test_util.c