]> git.ipfire.org Git - thirdparty/libarchive.git/commit
OSS-Fuzz Issue 806: integer overflow in mtree_atol10
authorTim Kientzle <kientzle@acm.org>
Sat, 11 Mar 2017 23:13:23 +0000 (15:13 -0800)
committerTim Kientzle <kientzle@acm.org>
Sat, 11 Mar 2017 23:13:23 +0000 (15:13 -0800)
commitfea0fb4db0d042f7491f6a4f3fdd166c8887cb21
treea7cf2332e9e822c21229dee13fe4d9c85502c193
parent71d26ad1b8e9f47f20abb4005a3d5c25ea83e4ab
OSS-Fuzz Issue 806: integer overflow in mtree_atol10

Rework the mtree_atol10 integer parser so it can parse
INT64_MIN without overflowing the intermediate value.

While here, make this function behave a little more predictably for
too-large input: It now always advances the pointer to the first
non-digit character.
libarchive/archive_read_support_format_mtree.c