On 11/03/15 20:25, Vittorio Giovara wrote:
Bug-Id: CID 1274038 --- 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'; }
Ok. _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
