GNOME Bugzilla – Bug 589131
binaryregistry: bogus error handling in registry reading
Last modified: 2009-07-20 18:08:48 UTC
I added some safety for handling truncated files in this cycle. Unfortunately the checks are bogus and as such preventing to read over the actual data bounds would still not be prevented and crash. Attached is a fix.
Created attachment 138820 [details] [review] unbreak error checking
commit 1a44bd93d686176793aebf1e56d0308286b58329 Author: Stefan Kost <ensonic@users.sf.net> Date: Mon Jul 20 16:11:02 2009 +0300 gstregistrybinary: add +1 after error checking The current code made the error checking pointless by changing -1 to 0 in error cases. Also don't leak a pad template on error.