aboutsummaryrefslogtreecommitdiff
path: root/projects/openexr
diff options
context:
space:
mode:
authormetamerism <70122622+metamerism@users.noreply.github.com>2020-09-22 02:32:04 +1200
committerGitHub <noreply@github.com>2020-09-21 07:32:04 -0700
commit99b319048100c8b9b24f72ebd59216dee7cbdf99 (patch)
tree7bd3618b38fdaed2d7e8a8cecdbdf13a8d6095b4 /projects/openexr
parent34751cf016682ad4cc626291e3ce8b937c253706 (diff)
downloadoss-fuzz-99b319048100c8b9b24f72ebd59216dee7cbdf99.tar.gz
[openexr] fix reading extra EXR channels in readMulti (#4461)
Signed-off-by: Peter Hillman <peter@pedro.kiwi>
Diffstat (limited to 'projects/openexr')
-rw-r--r--projects/openexr/openexr_scanlines_fuzzer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/projects/openexr/openexr_scanlines_fuzzer.cc b/projects/openexr/openexr_scanlines_fuzzer.cc
index c4986e826..fa20a7684 100644
--- a/projects/openexr/openexr_scanlines_fuzzer.cc
+++ b/projects/openexr/openexr_scanlines_fuzzer.cc
@@ -89,7 +89,7 @@ static void readMulti(IStream& is) {
const ChannelList& channelList = in->header().channels();
for (ChannelList::ConstIterator c = channelList.begin() ; c != channelList.end() ; ++c )
{
- i.insert(c.name(),Slice(HALF, (char*)&otherChannels[0] , sizeof(half) , 0 ));
+ i.insert(c.name(),Slice(HALF, (char*)&otherChannels[-dx] , sizeof(half) , 0 ));
}
// always try to read RGBA even if not present in file