Browse Source

avfilter/curves: fix resource leaks.

Fixes CID1206650
tags/n2.3
Clément Bœsch 11 years ago
parent
commit
b2cfd1fde7
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      libavfilter/vf_curves.c

+ 4
- 2
libavfilter/vf_curves.c View File

@@ -331,8 +331,10 @@ static int parse_psfile(AVFilterContext *ctx, const char *fname)
return ret;

#define READ16(dst) do { \
if (size < 2) \
return AVERROR_INVALIDDATA; \
if (size < 2) { \
ret = AVERROR_INVALIDDATA; \
goto end; \
} \
dst = AV_RB16(buf); \
buf += 2; \
size -= 2; \


Loading…
Cancel
Save