]> git.ipfire.org Git - thirdparty/tor.git/commit
Fix 8447: use %u to format circid_t.
authorNick Mathewson <nickm@torproject.org>
Sun, 10 Mar 2013 12:32:58 +0000 (08:32 -0400)
committerNick Mathewson <nickm@torproject.org>
Sun, 10 Mar 2013 23:52:06 +0000 (19:52 -0400)
commit339df5df085e2115c01881cf628abe5ed3fbd456
tree3a7e4f2f2c695e7506eda20e3637081f6fb5009a
parent74c33945e3c8c441111f0cb3dd0e5097ad2155f5
Fix 8447: use %u to format circid_t.

Now that circid_t is 4 bytes long, the default integer promotions will
leave it alone when sizeof(int) == 4, which will leave us formatting an
unsigned as an int.  That's technically undefined behavior.

Fixes bug 8447 on bfffc1f0fc7616a25c32da2eb759dade4651659e.  Bug not
in any released Tor.
12 files changed:
src/or/channel.c
src/or/circuitbuild.c
src/or/circuitlist.c
src/or/circuitmux.c
src/or/circuituse.c
src/or/command.c
src/or/connection_edge.c
src/or/connection_or.c
src/or/cpuworker.c
src/or/rendclient.c
src/or/rendmid.c
src/or/rendservice.c