Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 133125 - %s on random data is dangerous
%s on random data is dangerous
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: sudo (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Karel Zak
Ben Levenson
Depends On:
  Show dependency treegraph
Reported: 2004-09-21 15:30 EDT by David Binderman
Modified: 2007-11-30 17:07 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-05-24 09:12:21 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 David Binderman 2004-09-21 15:30:55 EDT
Description of problem:

I just tried to compile package sudo-1.6.7p5-27 from
Redhat Fedora Core 3 Test 1.

The compiler said

sesh.c(21): warning #267: the format string requires additional arguments

The source code is

    snprintf(buf, sizeof(buf), "%s: Couldn't fork");

%s on random data is dangerous. Suggest rework.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
Actual results:

Expected results:

Additional info:
Comment 1 Daniel Walsh 2004-09-29 07:56:06 EDT
Oops, thanks fixed in sudo-1_6_7p5-30
Comment 2 Karel Zak 2005-05-02 15:13:18 EDT
It's valid for RHEL3 too.

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