Skip to content
  • Nick Mathewson's avatar
    Add a simple locale-independent no-surprises sscanf replacement. · 26d83fc0
    Nick Mathewson authored
    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
    26d83fc0