[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #5558 [Tor Client]: tor_vsscanf() returns -1 if '%%' doesn't match a '%'.
#5558: tor_vsscanf() returns -1 if '%%' doesn't match a '%'.
------------------------+---------------------------------------------------
Reporter: asn | Owner:
Type: defect | Status: new
Priority: normal | Milestone: Tor: 0.2.3.x-final
Component: Tor Client | Version:
Keywords: easy | Parent:
Points: | Actualpoints:
------------------------+---------------------------------------------------
`tor_vsscanf()` returns -1 if '%%' doesn't match a '%', but
`tor_vsscanf()` is supposed to return -1 only on malformed patterns.
`tor_vsscanf()` should return `n_matched` in this case.
{{{
} else if (*pattern == '%') {
if (*buf != '%')
return -1;
++buf;
++pattern;
}}}
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/5558>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs