History

avcodec/tiff: Fix leak of geotags[].val

Fixes: 2176/clusterfuzz-testcase-minimized-5908197216878592

Michael Niedermayer committed 9 years ago

Commit 22a25ab1 parent 1197c041 file · +2 −0Browse files

Unified · Split

libavcodec/tiff.c+2−0
@@ -1114,6 +1114,8 @@ static int tiff_decode_tag(TiffContext *s, AVFrame *frame) · 1113 unmodified lines
1114 if (s->geotags[i].count == 01114 if (s->geotags[i].count == 0
1115 || s->geotags[i].offset + s->geotags[i].count > count) {1115 || s->geotags[i].offset + s->geotags[i].count > count) {
1116 av_log(s->avctx, AV_LOG_WARNING, "Invalid GeoTIFF key %d\n", s->geotags[i].key);1116 av_log(s->avctx, AV_LOG_WARNING, "Invalid GeoTIFF key %d\n", s->geotags[i].key);
1117 } else if (s->geotags[i].val) {
1118 av_log(s->avctx, AV_LOG_WARNING, "Duplicate GeoTIFF key %d\n", s->geotags[i].key);
1117 } else {1119 } else {
1118 char *ap = doubles2str(&dp[s->geotags[i].offset], s->geotags[i].count, ", ");1120 char *ap = doubles2str(&dp[s->geotags[i].offset], s->geotags[i].count, ", ");
1119 if (!ap) {1121 if (!ap) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t