Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
libopenraw
exempi
Commits
ab0f2968
Commit
ab0f2968
authored
Aug 14, 2017
by
Hubert Figuiere
Browse files
2.4.x: Bug 102151 - RIFF: fix an infinite loop cause by an overflow
parent
fe2b070c
Changes
1
Hide whitespace changes
Inline
Side-by-side
XMPFiles/source/FormatSupport/RIFF.cpp
View file @
ab0f2968
...
...
@@ -173,7 +173,8 @@ Chunk::Chunk( ContainerChunk* parent, RIFF_MetaHandler* handler, bool skip, Chun
this
->
oldPos
=
file
->
Offset
();
this
->
id
=
XIO
::
ReadUns32_LE
(
file
);
this
->
oldSize
=
XIO
::
ReadUns32_LE
(
file
)
+
8
;
this
->
oldSize
=
XIO
::
ReadUns32_LE
(
file
);
this
->
oldSize
+=
8
;
// Make sure the size is within expected bounds.
XMP_Int64
chunkEnd
=
this
->
oldPos
+
this
->
oldSize
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment