]> err.no Git - dpkg/commit
libdpkg: Do not segfault on varbufdupc after extending the buffer
authorGuillem Jover <guillem@debian.org>
Thu, 19 Jun 2008 05:06:00 +0000 (08:06 +0300)
committerGuillem Jover <guillem@debian.org>
Thu, 19 Jun 2008 05:13:28 +0000 (08:13 +0300)
commitb3e03cf33bda6b6061c1aced6ac63bbcd874e9a6
treea46a2844af66ed8bf6e6f4801c68e001df4e85db
parent354cf7ad828818aa4cef17e801c06e697a8c0616
libdpkg: Do not segfault on varbufdupc after extending the buffer

Store the old used size instead of the precomputed address, as
varbufextend might change the buffer from under us.
ChangeLog
lib/varbuf.c