blob: 59698e927357ca4bcb41504726b1e0497d80c270 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- src/mp4file_io.cpp.orig 2012-05-20 22:11:53 UTC
+++ src/mp4file_io.cpp
@@ -387,7 +387,7 @@ char* MP4File::ReadCountedString(uint8_t
charLength = ReadUInt8();
}
- if (fixedLength && (charLength > fixedLength)) {
+ if (fixedLength && (charLength > fixedLength - 1)) {
/*
* The counted length of this string is greater than the
* maxiumum fixed length, so truncate the string to the
@@ -397,7 +397,7 @@ char* MP4File::ReadCountedString(uint8_t
* a non counted string has been used in the place of a
* counted string).
*/
- WARNING(charLength > fixedLength);
+ WARNING(charLength > fixedLength - 1);
charLength = fixedLength - 1U;
}
|