[Pkg-gnupg-maint] Bug#773520: Bug#773520: use-after-free
NIIBE Yutaka
gniibe at fsij.org
Thu Jan 8 03:40:01 UTC 2015
On 01/07/2015 01:58 PM, NIIBE Yutaka wrote:
> Here is my fix along with other fixes in map_host function.
[...]
> @@ -504,9 +506,11 @@ map_host (ctrl_t ctrl, const char *name, int force_reselect,
> hi->pool = xtryrealloc (reftbl, (refidx+1) * sizeof *reftbl);
> if (!hi->pool)
> {
> + err = gpg_error_from_syserror ();
> log_error ("shrinking index table in map_host failed: %s\n",
> strerror (errno));
> xfree (reftbl);
> + return err;
> }
Changing the call of strerror (errno) above into gpg_strerror (err), I
committed the change into master.
--
More information about the Pkg-gnupg-maint
mailing list