From af37a8a3496327a6e5617a2c76f17aa1e8db835e Mon Sep 17 00:00:00 2001 From: Siddhesh Poyarekar Date: Mon, 27 Jan 2014 11:32:44 +0530 Subject: Avoid undefined behaviour in netgroupcache Using a buffer after it has been reallocated is undefined behaviour, so get offsets of the triplets in the old buffer before reallocating it. --- ChangeLog | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 1a23eba..a1f549e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2014-01-27 Siddhesh Poyarekar + + * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from + the old buffer before realloc. + 2014-01-27 Allan McRae * po/fr.po: Update French translation from translation project. -- cgit v1.1