mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-07 10:00:07 +00:00
resolv: Fix memory leak with OOM during resolv.conf parsing [BZ #22095]
(cherry picked from commit 5670c4ab25
)
This commit is contained in:
parent
3005466abe
commit
905a612914
@ -1,3 +1,9 @@
|
|||||||
|
2017-09-06 Florian Weimer <fweimer@redhat.com>
|
||||||
|
|
||||||
|
[BZ #22095]
|
||||||
|
* resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
|
||||||
|
dynarray allocation failure.
|
||||||
|
|
||||||
2017-09-06 Florian Weimer <fweimer@redhat.com>
|
2017-09-06 Florian Weimer <fweimer@redhat.com>
|
||||||
|
|
||||||
Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
|
Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
|
||||||
|
1
NEWS
1
NEWS
@ -28,6 +28,7 @@ The following bugs are resolved with this release:
|
|||||||
[21932] Unpaired __resolv_context_get in generic get*_r implementation
|
[21932] Unpaired __resolv_context_get in generic get*_r implementation
|
||||||
[21941] powerpc: Restrict xssqrtqp operands to Vector Registers
|
[21941] powerpc: Restrict xssqrtqp operands to Vector Registers
|
||||||
[21972] assert macro requires operator== (int) for its argument type
|
[21972] assert macro requires operator== (int) for its argument type
|
||||||
|
[22095] resolv: Fix memory leak with OOM during resolv.conf parsing
|
||||||
|
|
||||||
Version 2.26
|
Version 2.26
|
||||||
|
|
||||||
|
@ -446,6 +446,11 @@ res_vinit_1 (FILE *fp, struct resolv_conf_parser *parser)
|
|||||||
(&parser->nameserver_list);
|
(&parser->nameserver_list);
|
||||||
if (p != NULL)
|
if (p != NULL)
|
||||||
*p = sa;
|
*p = sa;
|
||||||
|
else
|
||||||
|
{
|
||||||
|
free (sa);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user