freebsd-ports/multimedia/mp4v2/files/patch-src-mp4file_io.cpp
Thomas Zander fe795ffd4b Update to upstream release 2.0.0
Details:
Update to what seems to be the latest generally accepted upstream
release (judging by what major Linux distributions have been including
in the recent past and what consumers of the lib are using.)

PR:		212785
Submitted by:	wulf (patch set for the port)
Reported by:	rkoberman@gmail.com
2019-08-27 12:07:44 +00:00

20 lines
750 B
C++

--- 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;
}