Commit graph

206 commits

Author SHA1 Message Date
nnposter
0cef34fa47 Avoid shifting into the sign bit. Fix #3514
Some checks are pending
nmap multiplatform autobuilds / build (arm64, gcc, ubuntu-latest-gcc-arm64, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, freebsd-15-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, macos-15-clang, macos-15) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, macos-26-clang, macos-26) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, netbsd-10-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, openbsd-7-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, solaris-11-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, ubuntu-latest-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (egcc, openbsd-7-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (gcc, freebsd-15-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (gcc, netbsd-10-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (gcc, solaris-11-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (gcc, ubuntu-latest-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (msvc, windows-latest-msvc, windows-latest) (push) Waiting to run
2026-09-23 23:51:12 +00:00
dmiller
f3147377ca Fix a couple of format string issues 2026-09-23 19:15:30 +00:00
dmiller
6b9e1aea01 Mark log functions as printf-like 2026-09-23 19:15:29 +00:00
dmiller
9160335bc4 Fix C4098: void return type function returning a value 2026-09-14 17:42:04 +00:00
dmiller
08a074881b Avoid extra copying and simplify hexdump() 2026-08-31 16:17:40 +00:00
dmiller
794d1aff28 Warn in (unlikely) case addrset_add_spec called with netmask and AF_UNSPEC 2026-08-31 16:17:39 +00:00
dmiller
ba30f7245f Check for non-finite and dangerous values from strtod() 2026-08-29 21:34:19 +00:00
dmiller
26e2993bd6 New addrset trie property: always the most compact form 2026-08-28 04:03:21 +00:00
dmiller
e4e8c97eb7 Better semantics for constants in addrset 2026-08-28 04:03:21 +00:00
dmiller
8ecc9a6729 Enable addrset to update from another addrset 2026-08-28 04:03:20 +00:00
dmiller
66a5cbe7ff Match IPv4 and IPv6 in separate trie structures to avoid ::ffff:0:0/96 problem 2026-08-28 04:03:19 +00:00
dmiller
fe777b1d7c Addrset: add ability to test for entire address space exclusion 2026-08-28 04:03:18 +00:00
dmiller
5650f35c6d Use random, not progressive TXID for DNS requests 2026-08-14 19:04:39 +00:00
dmiller
5de629e3dd Modernize autoconf macros for nbase 2026-08-14 17:16:19 +00:00
dmiller
6680c9343f Remove obsolete AC_HEADER_STDC macro 2026-08-14 17:16:17 +00:00
dmiller
58facd5fbf Remove obsolete AC_HEADER_TIME 2026-08-14 17:16:15 +00:00
dmiller
320d00efc8 Fix build on macOS due to strict C++ standard compliance 2026-08-05 19:59:48 +00:00
dmiller
ad11deed36 Update Strncpy implementation
Avoid strncpy() because of extra effort to null-pad dest.
Fix bug where Strncpy(src, dst, 0) would do dst[-1] = '\0';
2026-07-16 19:14:31 +00:00
dmiller
2c7de4b6b3 Fix Windows build: __cplusplus inaccurate on MSVC 2026-07-16 16:12:46 +00:00
dmiller
10cada944b Use safer macro for copying string literals into buffers 2026-07-15 23:35:12 +00:00
dmiller
d8c9880cd5 Consolidate inet_ntop_ez-like code from throughout
Some checks failed
nmap multiplatform autobuilds / build (arm64, gcc, ubuntu-latest-gcc-arm64, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, freebsd-15-clang, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, macos-15-clang, macos-15) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, macos-26-clang, macos-26) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, netbsd-10-clang, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, openbsd-7-clang, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, solaris-11-clang, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, ubuntu-latest-clang, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (egcc, openbsd-7-gcc, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (gcc, freebsd-15-gcc, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (gcc, netbsd-10-gcc, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (gcc, solaris-11-gcc, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (gcc, ubuntu-latest-gcc, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (msvc, windows-latest-msvc, windows-latest) (push) Has been cancelled
2026-06-11 23:28:26 +00:00
dmiller
6e18e8d89f deduplicate some macros 2026-06-10 21:39:37 +00:00
dmiller
e9861daf84 Avoid timeout on STDIN socket. Fixes #3291.
Windows enforces a 120-second timeout for sockets in FIN_WAIT_2, so the
STDIN socket was being forcibly closed after 2 minutes.
2026-05-15 16:23:46 +00:00
dmiller
abf98ca7b7 Remove old makedepend command. Fixes #503 2026-05-12 20:09:07 +00:00
dmiller
323d875df8 Ensure nbase's hexdump doesn't print too much 2026-05-06 21:38:09 +00:00
dmiller
91ea799a8b Ensure null termination on copied strings 2026-04-30 22:02:00 +00:00
dmiller
ab973f548a Nbase: make checksum functions const, avoid undefined behavior in shifts 2026-04-20 15:21:54 +00:00
dmiller
f6eef1796a Fix clang warnings about braces in initialization 2026-04-20 15:21:53 +00:00
dmiller
53e6be8f28 Avoid undefined shifts due to int promotion 2026-04-16 23:36:48 +00:00
dmiller
9351c41147 Fix memory leak in addrset 2026-04-02 19:14:12 +00:00
dmiller
1f6d6b18da Make sure config checks don't fail with asan 2026-04-02 19:14:11 +00:00
dmiller
95d380b836 Bump copyright date to 2026 [skip ci] 2026-02-16 22:33:40 +00:00
dmiller
5bb82a2ad0 Fix crash in socket_bindtodevice: NULL device is permissible 2025-09-03 17:04:46 +00:00
dmiller
c66baf785e Merge Nmap 7.96 release branch 2025-05-07 13:22:40 +00:00
dmiller
40b5bda3ac Consistent Windows build parameters 2025-04-15 23:58:46 +00:00
dmiller
6db5c9cb85 Bump copyright date 2025-02-26 17:44:43 +00:00
dmiller
dd7b7d76e8 socket_bindtodevice: make whole function conditional on SO_BINDTODEVICE definition 2025-02-10 20:32:48 +00:00
dmiller
6f72b2ea43 Remove extraneous newlines from addrset debug lines 2025-01-17 16:27:17 +00:00
dmiller
6b2df74ef2 Nbase: use a static SOCKET for STDIN 2024-11-06 16:46:32 +00:00
dmiller
f9b9434044 nbase: win32 build fix 2024-11-06 16:05:03 +00:00
dmiller
f1559fbc22 Use a socket, not pipe, for STDIN emulation in fselect
Using a TCP connected socket allows us to use a single select call instead of
interrupting it every 125ms to poll the stdin-pipe.
2024-10-30 18:55:39 +00:00
dmiller
fef9f592b0 POSIX usleep() returns an int. 2024-10-28 23:17:05 +00:00
nnposter
96dcf4e9ed Remove various "the the" repeats. Closes #2804 2024-03-16 01:16:34 +00:00
dmiller
f999182d0f Bump date and reapply header templates 2024-02-28 18:46:45 +00:00
dmiller
6959060fe6 Remove unused checks for OpenSSL from nbase 2023-10-30 19:01:08 +00:00
dmiller
ef71e5e37d Avoid out-of-bounds read leading to runaway allocations. Fixes #2731 2023-10-30 19:01:07 +00:00
dmiller
6f6b2de214 Apply new license templates, bump copyright date 2023-04-14 17:11:46 +00:00
dmiller
7fe3f15eca Rewrite C99-style for loops 2023-04-03 21:42:37 +00:00
dmiller
ad9d7b7a1b Fix MSVC warning about (void) 2023-01-05 23:45:56 +00:00
dmiller
350d9a23f7 Silence compiler warnings about returning value from void function. Fixes #2529 2022-09-30 20:27:02 +00:00