Bug 7373 - Allocation size error in pam_ftp module
Allocation size error in pam_ftp module
Product: Red Hat Linux
Classification: Retired
Component: pam (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Cristian Gafton
Depends On:
  Show dependency treegraph
Reported: 1999-11-27 03:39 EST by Matthias Urlichs
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-02-05 18:12:03 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Matthias Urlichs 1999-11-27 03:39:27 EST
Line 222:

            prompt = malloc(sizeof(PLEASE_ENTER_PASSWORD + strlen(user)));
            sprintf(prompt, PLEASE_ENTER_PASSWORD, user);

I'm amazed that this does even compile.  ;-)

Change to:
            prompt = malloc(sizeof(PLEASE_ENTER_PASSWORD) + strlen(user));
            sprintf(prompt, PLEASE_ENTER_PASSWORD, user);
Comment 1 Nalin Dahyabhai 2000-02-05 18:12:59 EST
This is fixed as of pam-0.72-1 and later in Raw Hide, slated for
inclusion in our next release.

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