SHA256
1
0
forked from pool/libquicktime
libquicktime/libquicktime-1.2.4-integer_overflow.patch

14 lines
467 B
Diff
Raw Normal View History

Index: libquicktime-1.2.4/src/util.c
===================================================================
--- libquicktime-1.2.4.orig/src/util.c
+++ libquicktime-1.2.4/src/util.c
@@ -340,7 +340,7 @@ int64_t quicktime_byte_position(quicktim
void quicktime_read_pascal(quicktime_t *file, char *data)
{
- char len = quicktime_read_char(file);
+ unsigned char len = quicktime_read_char(file);
quicktime_read_data(file, (uint8_t*)data, len);
data[(int)len] = 0;
}