| commit | 7d3fc13ab4a4198afa06826e7bc0fc323719f562 | [log] [tgz] |
|---|---|---|
| author | cristy <urban-warrior@git.imagemagick.org> | Sun Nov 23 16:36:24 2014 +0000 |
| committer | cristy <urban-warrior@git.imagemagick.org> | Sun Nov 23 16:36:24 2014 +0000 |
| tree | 995c4cbc57b9f1e84d704c6e87688be25faa8df1 | |
| parent | 35553db9b7d0d812b53b09e3906628239d908e1c [diff] [blame] |
diff --git a/coders/dpx.c b/coders/dpx.c index 8a77f33..8f18e0a 100644 --- a/coders/dpx.c +++ b/coders/dpx.c
@@ -790,6 +790,8 @@ case 7: image->orientation=RightBottomOrientation; break; } dpx.image.number_elements=ReadBlobShort(image); + if (dpx.image.number_elements > 8) + ThrowReaderException(CorruptImageError,"ImproperImageHeader"); offset+=2; dpx.image.pixels_per_line=ReadBlobLong(image); offset+=4;