]> git.ipfire.org Git - thirdparty/tor.git/commit
Lightly refactor and test format_hex_number_sigsafe
authorNick Mathewson <nickm@torproject.org>
Mon, 15 Jul 2013 16:52:29 +0000 (12:52 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 15 Jul 2013 16:52:29 +0000 (12:52 -0400)
commit9fda7e8cd1bbc33479c667ea97a220333f81c148
treef5e48339cf19cac8d7613049b6f934594f0e0fbb
parent18136afbbb4934c1104716a29a0efc68a8fd8f51
Lightly refactor and test format_hex_number_sigsafe

Better tests for upper bounds, and for failing cases.

Also, change the function's interface to take a buffer length rather
than a maximum length, and then NUL-terminate: functions that don't
NUL-terminate are trouble waiting to happen.
src/common/util.c
src/test/test_util.c