Bug 63175 - Needs to use shvar.c from authconfig/initscripts
Needs to use shvar.c from authconfig/initscripts
Product: Red Hat Linux
Classification: Retired
Component: usermode (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Nalin Dahyabhai
David Lawrence
Depends On:
Blocks: 61901
  Show dependency treegraph
Reported: 2002-04-10 16:42 EDT by Owen Taylor
Modified: 2007-04-18 12:41 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-04-10 18:32:36 EDT
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 Owen Taylor 2002-04-10 16:42:56 EDT
The shvar.c in usermode/shvar.c has:

 s->arena = calloc(buf.st_size, 1);

But expects the result to be \0 terminated, so this should
be buf.st_size + 1. It's probably best to just copy the shvar.c
from initscripts or authconfig in, which has this bug fixed,

(the initscripts/authconfig version is a fair bit different
having been glib-ized, but last time I checked looked generally
identical, and a little better for a few edge cases.)
Comment 1 Nalin Dahyabhai 2002-04-11 10:34:31 EDT
Fixing for 1.53-1.  Thanks!

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