diff options
author | Nick Mathewson <nickm@torproject.org> | 2009-03-03 18:02:31 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2009-03-03 18:02:31 +0000 |
commit | 26d83fc04c66d2c592ff64b62830c171266b4f75 (patch) | |
tree | f874d5f4e80efd5c885503af4fe9e5d823b1829b /src/common/log.h | |
parent | 9f8d095e0fa66dfa5087d5d23028b5caa3a87989 (diff) | |
download | tor-26d83fc04c66d2c592ff64b62830c171266b4f75.tar.gz tor-26d83fc04c66d2c592ff64b62830c171266b4f75.zip |
Add a simple locale-independent no-surprises sscanf replacement.
tor_sscanf() only handles %u and %s for now, which will make it
adequate to replace sscanf() for date/time/IP parsing. We want this
to prevent attackers from constructing weirdly formed descriptors,
cells, addresses, HTTP responses, etc, that validate under some
locales but not others.
svn:r18760
Diffstat (limited to 'src/common/log.h')
0 files changed, 0 insertions, 0 deletions