Skip to content

Segmentation fault when using invalid port wildcard #2658

@SpaghettiBorgar

Description

@SpaghettiBorgar

nmap crashes when using invalid expressions in place for numeric wildcard arguments such as for the ports to scan

To reproduce, run nmap -p somestring

While it's an invalid argument, it should still catch and show the error.

  • OS: Linux 6.3.7
  • Output of nmap --version:
Nmap version 7.94 ( https://nmap.org )
Platform: x86_64-pc-linux-gnu
Compiled with: liblua-5.4.6 openssl-3.1.1 libssh2-1.10.0 libz-1.2.13 libpcre-8.45 libpcap-1.10.4 nmap-libdnet-1.12 ipv6
Compiled without:
Available nsock engines: epoll poll select

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions