]> git.ipfire.org Git - thirdparty/tor.git/commit
Nuke uses of memcmp outside of unit tests
authorNick Mathewson <nickm@torproject.org>
Thu, 13 Dec 2012 22:34:05 +0000 (17:34 -0500)
committerNick Mathewson <nickm@torproject.org>
Thu, 13 Dec 2012 22:34:05 +0000 (17:34 -0500)
commitb1ff8daeb521d1645bc35ffd7191599b7169c2bb
tree60c365a6cb8f67cb2abbf92cc7e504a282974713
parent579808d4cdc62346fffa364900d0d76cfa28b3e1
Nuke uses of memcmp outside of unit tests

We want to be saying fast_mem{cmp,eq,neq} when we're doing a
comparison that's allowed to exit early, or tor_mem{cmp,eq,neq} when
we need a data-invariant timing.  Direct use of memcmp tends to imply
that we haven't thought about the issue.
src/common/aes.c
src/or/dirserv.c
src/or/geoip.c
src/or/microdesc.c
src/or/routerlist.c