]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Add tighter checks to avoid reading past end of buffer 24/head
authorBrian Weaver <cmdrclueless@gmail.com>
Tue, 25 Sep 2012 13:51:12 +0000 (09:51 -0400)
committerBrian Weaver <cmdrclueless@gmail.com>
Tue, 25 Sep 2012 13:51:12 +0000 (09:51 -0400)
commitb0eb750cabc9bdd4fba38d3efd1b747a7cd967de
tree98a77d7b497a5d00a101c80de76d71a5c717f89a
parent04725edc318a3d89f0ab709da6809a2965a6e0e4
Add tighter checks to avoid reading past end of buffer

The string to base 8/10 conversion routines could read past the
counted end of the buffer if the string is correctly formated.
The number of characters is now checked and decremented for every
character that is consumed for processing.
libarchive/archive_read_support_format_tar.c