Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Masamichi Hosoda
poppler
Commits
5417b8c3
Commit
5417b8c3
authored
Feb 02, 2019
by
Vincent Le Garrec
Committed by
Albert Astals Cid
Feb 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Integer-overflow in FoFiBase::checkRegion
oss-fuzz/8612
parent
0d410376
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
fofi/FoFiBase.cc
fofi/FoFiBase.cc
+2
-0
No files found.
fofi/FoFiBase.cc
View file @
5417b8c3
...
...
@@ -17,6 +17,7 @@
// Copyright (C) 2011 Jim Meyering <jim@meyering.net>
// Copyright (C) 2016, 2018 Albert Astals Cid <aacid@kde.org>
// Copyright (C) 2019 Christian Persch <chpe@src.gnome.org>
// Copyright (C) 2019 LE GARREC Vincent <legarrec.vincent@gmail.com>
//
// To see a description of the changes please see the Changelog file that
// came with your tarball or type make ChangeLog if you are building from git
...
...
@@ -195,6 +196,7 @@ unsigned int FoFiBase::getUVarBE(int pos, int size, bool *ok) const {
bool
FoFiBase
::
checkRegion
(
int
pos
,
int
size
)
const
{
return
pos
>=
0
&&
size
>=
0
&&
pos
<
INT_MAX
-
size
&&
size
<
INT_MAX
-
pos
&&
pos
+
size
>=
pos
&&
...
...
Write
Preview
Markdown
is supported
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