Bug 54384 - Memory allocation bug
Memory allocation bug
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: newt (Show other bugs)
7.1
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Elliot Lee
Aaron Brown
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2001-10-05 08:25 EDT by Gary Benson
Modified: 2007-04-18 12:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2001-10-05 08:25:43 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Gary Benson 2001-10-05 08:25:38 EDT
Problem: There is a memory allocation bug in the entry code that causes
segfaults on some platforms when using password entries.

Version: newt-0.50.30

Fix:
--- entry.c.orig	Tue Jan 23 06:27:38 2001
+++ entry.c	Fri Oct  5 13:23:22 2001
@@ -142,7 +142,7 @@
     if (en->flags & NEWT_FLAG_PASSWORD) {
 	char *tmpptr, *p;
 
-
tmpptr = alloca(strlen(chptr+2));
+
tmpptr = alloca(strlen(chptr)+2);
 	strcpy(tmpptr, chptr);
 	for (p = tmpptr; *p; p++)
 	    *p = '*';
Comment 1 Bill Nottingham 2001-10-08 11:14:38 EDT
Will be fixed in 0.50.35-1.

Note You need to log in before you can comment on or make changes to this bug.