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
xcbgrab: Check av_strdup() allocation
Bug-Id: CID 1274038
tags/n2.7
Vittorio Giovara
11 years ago
parent
17c45d4d05
commit
edca1dd552
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
libavdevice/xcbgrab.c
+ 2
- 0
libavdevice/xcbgrab.c
View File
@@ -602,6 +602,8 @@ static av_cold int xcbgrab_read_header(AVFormatContext *s)
if (opts) {
sscanf(opts, "%d,%d", &c->x, &c->y);
host = av_strdup(s->filename);
if (!host)
return AVERROR(ENOMEM);
host[opts - s->filename] = '\0';
}
Write
Preview
Loading…
Cancel
Save