This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
avformat/mxfdec: Check size to avoid integer overflow in mxf_read_utf16_string()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.2
Michael Niedermayer
8 years ago
parent
c495f4ffde
commit
fecb3e82a4
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
libavformat/mxfdec.c
+ 1
- 1
libavformat/mxfdec.c
View File
@@ -717,7 +717,7 @@ static inline int mxf_read_utf16_string(AVIOContext *pb, int size, char** str, i
int ret;
size_t buf_size;
if (size < 0)
if (size < 0
|| size > INT_MAX/2
)
return AVERROR(EINVAL);
buf_size = size + size / 2 + 1;
Write
Preview
Loading…
Cancel
Save