ffmpeg | branch: master | Vittorio Giovara <[email protected]> | Wed Mar 11 19:25:01 2015 +0000| [edca1dd552efa1ebef016ca9eff4ce6757605819] | committer: Vittorio Giovara
xcbgrab: Check av_strdup() allocation Bug-Id: CID 1274038 > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=edca1dd552efa1ebef016ca9eff4ce6757605819 --- libavdevice/xcbgrab.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavdevice/xcbgrab.c b/libavdevice/xcbgrab.c index 20a29d1..2435c9c 100644 --- a/libavdevice/xcbgrab.c +++ b/libavdevice/xcbgrab.c @@ -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'; } _______________________________________________ ffmpeg-cvslog mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog
