Bug 144472 - nash: mknod crash on missing arguments
Summary: nash: mknod crash on missing arguments
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: mkinitrd
Version: 2
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Peter Jones
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-01-07 13:50 UTC by Kasper Dupont
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2005-01-21 20:06:21 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Fix getArg (398 bytes, patch)
2005-01-07 13:53 UTC, Kasper Dupont
no flags Details | Diff

Description Kasper Dupont 2005-01-07 13:50:42 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3)
Gecko/20040922

Description of problem:
If the internal mknod in nash is used without the required four
arguments it crash on a NULL pointer dereference.

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

How reproducible:
Always

Steps to Reproduce:
1. nash
2. mknod
    

Actual Results:
Segmentation fault (core dumped)

Expected Results:
mknod: usage mknod <path> [c|b] <major> <minor>

Additional info:

Comment 1 Kasper Dupont 2005-01-07 13:53:06 UTC
Created attachment 109464 [details]
Fix getArg

This patch improves getArg to handle cmd==NULL in the way mknodCommand expects.

Comment 2 Peter Jones 2005-01-21 20:06:21 UTC
Thanks for the patch.


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