Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 346787 - net-analyzer/netdiscover-0.3-beta6-r3 segfaults if given -r without / after IP
Summary: net-analyzer/netdiscover-0.3-beta6-r3 segfaults if given -r without / after IP
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Netmon Herd
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-25 18:29 UTC by onox
Modified: 2013-02-02 12:13 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description onox 2010-11-25 18:29:00 UTC
I'm using 0.3-beta6 (-r3 in gentoo) and when I do netdiscover -i eth0 -r 192.168.2.0

so without the / (and without a number behind the /) it seems to segfault.

dmesg output:

device eth0 entered promiscuous mode
netdiscover[23628]: segfault at 0 ip 51acd04b sp 5029829c error 4 in libc-2.11.so[51a9e000+145000]
grsec: Segmentation fault occurred at (nil) in /usr/sbin/netdiscover[netdiscover:23628] uid/euid:0/0 gid/egid:0/0, parent /bin/zsh[zsh:23597] uid/euid:0/0 gid/egid:0/0
device eth0 left promiscuous mode

Reproducible: Always

Steps to Reproduce:
1. Start netdiscover with -r <ip> instead of -r <ip>/<number>

Actual Results:  
segfault

Expected Results:  
Error message saying format of -r is incorrect.
Comment 1 Michele Noberasco (RETIRED) gentoo-dev 2010-12-03 10:54:08 UTC
Reported this upstream.