MJPEGServer: Fix URI %xx-decoding.

This commit is contained in:
Peter Johnson
2016-11-18 19:03:35 -08:00
parent df18e178ee
commit 3d898dd8f7

View File

@@ -197,7 +197,7 @@ static bool UnescapeURI(llvm::StringRef str, llvm::SmallVectorImpl<char>& out) {
}
// are there enough characters left?
if (i + 2 < end) return false;
if (i + 2 >= end) return false;
// replace %xx with the corresponding character
unsigned val1 = llvm::hexDigitValue(*++i);