NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

PR/57699 CVS commit: [netbsd-10] src/common/lib/libprop



The following reply was made to PR lib/57699; it has been noted by GNATS.

From: "Manuel Bouyer" <bouyer%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc: 
Subject: PR/57699 CVS commit: [netbsd-10] src/common/lib/libprop
Date: Sun, 26 Nov 2023 12:29:49 +0000

 Module Name:	src
 Committed By:	bouyer
 Date:		Sun Nov 26 12:29:49 UTC 2023
 
 Modified Files:
 	src/common/lib/libprop [netbsd-10]: prop_string.c
 
 Log Message:
 Pull up following revision(s) (requested by thorpej in ticket #467):
 	common/lib/libprop/prop_string.c: revision 1.18
 In _prop_string_instantiate(), when we de-dup a non-MUTABLE string, make
 sure we free the provided string buffer if NOCOPY is not set.  Fixes
 a memory leak reported by M. Boerschig.
 While we're at it, also change _prop_string_instantiate() to free the
 provided string buffer in the not-NOCOPY case when string object allocation
 fails (this was previously handled by _prop_string_instantiate()'s
 callers).
 PR lib/57699
 
 
 To generate a diff of this commit:
 cvs rdiff -u -r1.17 -r1.17.2.1 src/common/lib/libprop/prop_string.c
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.
 


Home | Main Index | Thread Index | Old Index