mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
MJPEGServer: Fix URI %xx-decoding.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user