Chromium Code Reviews
DescriptionRefactor FtpCtrlResponseBuffer::ParseLine to use net::ParseInt32() rather than base::StringToInt().
I don't believe this fixes any actual bug, since the caller is restricting input length and checking output range.
It should make it easier to reason about though, since the status_code field is now left as kInvalidStatusCode on failure, whereas before StringToInt() may have modified it.
BUG=596546
Committed: https://crrev.com/68da9c5135bad8ed4ed40cb95133d2c313e164a7
Cr-Commit-Position: refs/heads/master@{#386479}
Patch Set 1 #
Messages
Total messages: 11 (6 generated)
|
|||||||||||||||||||