Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Diff of /ChangeLog [908b0d] .. [719557] Maximize Restore

  Switch to side-by-side view

--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2007-08-01  Keith Marshall  <keithmarshall@users.sourceforge.net>
+
+	Correct a potential buffer overrun and memory leak.
+
+	* src/man-getopt.c (mysetenv) [!HAVE_SETENV]: Correct size of buffer
+	allocated for constructing argument to `putenv'; was 2*strlen(name)+2;
+	should be strlen(name)+strlen(value)+2.  Free this buffer after use,
+	if `putenv' makes a distinct copy.
+
 2007-08-01  Keith Marshall  <keithmarshall@users.sourceforge.net>
 
 	* Makefile.in (DISTDIRS): Add `misc'.