Mercurial > libavformat.hg
changeset 3091:b8df4b5e16d0 libavformat
return error if malloc fails
author | bcoudurier |
---|---|
date | Wed, 27 Feb 2008 09:30:56 +0000 |
parents | a047cdd6c6b4 |
children | f9cacbd12145 |
files | mov.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mov.c Wed Feb 27 09:30:05 2008 +0000 +++ b/mov.c Wed Feb 27 09:30:56 2008 +0000 @@ -255,6 +255,8 @@ len += 1; if (type == 2) { // absolute path dref->path = av_mallocz(len+1); + if (!dref->path) + return AVERROR(ENOMEM); get_buffer(pb, dref->path, len); if (len > volume_len && !strncmp(dref->path, volume, volume_len)) { len -= volume_len;