From: Nick Bowler Date: Fri, 4 May 2012 00:28:52 +0000 (-0400) Subject: libupkg: Fix spurious success in upkg_decode_index. X-Git-Url: https://git.draconx.ca/gitweb/upkg.git/commitdiff_plain/5fca0fe6cdbe90d31cce2ef17c1d76a8cfe0f921?hp=5fca0fe6cdbe90d31cce2ef17c1d76a8cfe0f921 libupkg: Fix spurious success in upkg_decode_index. Make the upkg_decode_index function fail if the input is truncated, rather than successfully returning a bogus value. As an added bonus, this actually simplifies the code. ---