]> git.saurik.com Git - apt.git/commit
Base256ToNum: Fix uninitialized value
authorJulian Andres Klode <jak@debian.org>
Wed, 31 Aug 2016 15:18:07 +0000 (17:18 +0200)
committerJulian Andres Klode <jak@debian.org>
Wed, 31 Aug 2016 15:40:15 +0000 (17:40 +0200)
commitcf7503d8a09ebce695423fdeb2402c456c18f3d8
tree769618a674d5636e4dffaa75de4fbcb75ae0df1e
parent923c592ceb6014b31ec751b97b3ed659fa3e88ae
Base256ToNum: Fix uninitialized value

If the inner Base256ToNum() returned false, it did not set
Num to a new value, causing it to be uninitialized, and thus
might have caused the function to exit despite a good result.

Also document why the Res = Num, if (Res != Num) magic is done.

Reported-By: valgrind
apt-pkg/contrib/strutl.cc