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: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-25 18:29 UTC by onox
Modified: 2020-11-26 23:04 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.
Comment 2 Larry the Git Cow gentoo-dev 2020-11-26 23:04:11 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a92af860bf69aeab3ab56fca70d5769cc7331bf

commit 4a92af860bf69aeab3ab56fca70d5769cc7331bf
Author:     Aaron Bauman <bman@gentoo.org>
AuthorDate: 2020-11-26 22:31:15 +0000
Commit:     Aaron Bauman <bman@gentoo.org>
CommitDate: 2020-11-26 23:04:02 +0000

    net-analyzer/netdiscover: drop old
    
    Closes: https://bugs.gentoo.org/346787
    Signed-off-by: Aaron Bauman <bman@gentoo.org>

 net-analyzer/netdiscover/Manifest                  |  2 --
 .../netdiscover/netdiscover-0.3_beta6-r3.ebuild    | 35 ---------------------
 .../netdiscover/netdiscover-0.3_beta6-r4.ebuild    | 36 ----------------------
 3 files changed, 73 deletions(-)