]> git.lizzy.rs Git - rust.git/commit
UTF-8 validation: Add missing if conditional for short input
authorUlrik Sverdrup <bluss@users.noreply.github.com>
Tue, 12 Jan 2016 22:04:46 +0000 (23:04 +0100)
committerUlrik Sverdrup <bluss@users.noreply.github.com>
Thu, 14 Jan 2016 13:59:55 +0000 (14:59 +0100)
commitcadcd70775cf42b2add2526026a0a06c1ced411c
tree86e857e3000a21845f422e311fcd9dce6c21210e
parent11e3de39d9f3faa7bf119023be39c0afd580a9c4
UTF-8 validation: Add missing if conditional for short input

We need to guard that `len` is large enough for the fast skip loop.
src/libcore/str/mod.rs