]> git.ipfire.org Git - thirdparty/tor.git/commit
Use format_hex_number_sigsafe to format syscalls in sandbox.c
authorNick Mathewson <nickm@torproject.org>
Mon, 15 Jul 2013 17:07:09 +0000 (13:07 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 15 Jul 2013 17:07:09 +0000 (13:07 -0400)
commit85178e2e93036d0708bafa431fcdf4c1029ad2ff
tree67b77c9df2a284359a377049678a0aa800909a36
parent9fda7e8cd1bbc33479c667ea97a220333f81c148
Use format_hex_number_sigsafe to format syscalls in sandbox.c

This way, we don't have to use snprintf, which is not guaranteed to
be signal-safe.

(Technically speaking, strlen() and strlcpy() are not guaranteed to
be signal-safe by the POSIX standard. But I claim that they are on
every platform that supports libseccomp2, which is what matters
here.)
src/common/sandbox.c