]> git.ipfire.org Git - thirdparty/tor.git/commit
Detect platforms where memset(0) doesn't set doubles to 0.0.
authorNick Mathewson <nickm@torproject.org>
Tue, 29 Jan 2013 22:38:15 +0000 (17:38 -0500)
committerNick Mathewson <nickm@torproject.org>
Tue, 29 Jan 2013 22:38:15 +0000 (17:38 -0500)
commit73d605b0f759a2ff9f859f78f76098dcdb290d37
tree6293cd558c73359e726a40c8d6157af08be7cd35
parenta0351311aeea715cea24e156e065b65cc29a804c
Detect platforms where memset(0) doesn't set doubles to 0.0.

This is allowed by the C statndard, which permits you to represent
doubles any way you like, but in practice we have some code that
assumes that memset() clears doubles in structs.  Noticed as part of
7802 review; see 8081 for more info.
changes/double-0-check [new file with mode: 0644]
configure.ac
src/common/compat.h
src/win32/orconfig.h