nnposter
0cef34fa47
Avoid shifting into the sign bit. Fix #3514
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
794d1aff28
Warn in (unlikely) case addrset_add_spec called with netmask and AF_UNSPEC
2026-08-31 16:17:39 +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
6e18e8d89f
deduplicate some macros
2026-06-10 21:39:37 +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
95d380b836
Bump copyright date to 2026 [skip ci]
2026-02-16 22:33:40 +00:00
dmiller
6db5c9cb85
Bump copyright date
2025-02-26 17:44:43 +00:00
dmiller
6f72b2ea43
Remove extraneous newlines from addrset debug lines
2025-01-17 16:27:17 +00:00
dmiller
f999182d0f
Bump date and reapply header templates
2024-02-28 18:46:45 +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
dd690b3e0b
Bump copyright date and update some links [ci skip]
2022-02-18 17:38:46 +00:00
fyodor
3aec3f3a07
Update to latest copyright templates. Main change is that Insecure.Com LLC is now Nmap Software LLC
2021-11-23 16:04:37 +00:00
dmiller
2181443b63
Address a few code analysis warnings: uninitialized vars and undefined behavior
2021-08-06 16:17:46 +00:00
dmiller
68d2c0e960
Use stack for global special value so we don't have to clean it up.
2021-04-27 19:22:10 +00:00
dmiller
c9b7c2f590
Moar const
2021-04-26 17:58:01 +00:00
dmiller
05faa0287a
Fix addrset matching with overlapping CIDR specs. Fixes #2257
2021-03-01 18:42:00 +00:00
dmiller
ef8213a36c
Reintegrate Nmap 7.90 release branch
2020-10-05 23:00:30 +00:00
dmiller
3a744a85c2
Check o.debugging *after* parsing options, otherwise it's always false.
2019-10-30 23:34:34 +00:00
nnposter
9e8852a7c7
Rectify undefined behavior of out-of-range shift op
...
Fixes #1717 , closes #1718
2019-09-03 21:56:31 +00:00
dmiller
d639a53088
Bump copyright date in license headers
2019-05-28 21:36:04 +00:00
nnposter
71eec581a3
Move declaration to the front to improve compiler compatibility
2019-01-13 23:33:49 +00:00
dmiller
38b843558e
Change for-loop initial declarations not allowed in C89
2018-11-13 17:32:32 +00:00
dmiller
66eee935a9
Avoid compiler warning about signedness mismatch on VS2013.
2018-11-08 14:52:32 +00:00
dmiller
1345eb247b
Use iterative solution instead of tail recursion to avoid stack problems when optimization is off
2018-11-08 04:25:12 +00:00
dmiller
7ea0a8c9ac
Make functions static where possible
2018-11-06 15:07:02 +00:00
dmiller
824f9dcb2f
Rearrange declarations to put all addrset functions in nbase.h, hide struct addrset internals.
2018-11-01 04:35:00 +00:00
dmiller
c223ec5c36
Remove unused IPv6 support for legacy addrset_elem bit-matching
2018-11-01 04:34:58 +00:00
dmiller
0f916ec3bc
Fix an error in common-prefix calculation
2018-10-31 23:44:52 +00:00
dmiller
625884e7dc
Support netmasks in addrset trie. Use trie for resolved addresses and CIDR masks.
2018-10-31 20:32:16 +00:00
dmiller
324965d1d2
Use a radix tree (trie) to match exclude addresses
...
Current exclusions list from --excludefile takes linear time to match
against. Using a trie structure, we can do matching in O(log n) time,
with a hard maximum of 32 comparisons for IPv4 and 128 comparisons for
IPv6. Each node of the trie represents an address prefix that all
subsequent nodes share; matching stops when one is matched exactly or
when the candidate address does not match any prefix of the addresses in
the trie.
For now, only numeric addresses without netmask are supported. We plan
to extend this to addresses with netmasks, including resolved names.
Storing IPv4 ranges and wildcards in this structure would be
prohibitively complex, so the existing linear match method will be used
for those. It is unlikely that any users are using large exclusion lists
of these types of specifications, so performance impact is small.
Potential future features could use the trie structure to implement
custom routing or scope-limiting.
This was a todo list item based on this report:
https://seclists.org/nmap-dev/2012/q4/420
2018-10-31 14:01:34 +00:00
fyodor
ff62300249
Bump copyright dates to 2018 and slightly improve wording (doesn't change meaning) of Nmap license header text
2018-01-28 21:18:17 +00:00
dmiller
9c7ea727a7
Update license terms for 2017
2017-06-07 12:32:38 +00:00
fyodor
4bd67aa2fb
Update the Nmap license/header text to reflect latest updates to docs/legal-notices.xml
2016-12-14 00:12:23 +00:00
dmiller
2e05009ff7
Avoid undefined behavior of shifting over the sign bit by declaring unsigned literal
2016-07-28 05:11:34 +00:00
dmiller
6e33d6ac3c
Bump date in copyright headers
2016-04-04 15:38:44 +00:00
dmiller
68409b2226
Update copyright date to 2015
2015-06-03 13:01:29 +00:00
dmiller
5adfb3b1de
Update copyright notice to 2014
2014-08-16 01:52:33 +00:00
jay
8d5ec9e310
Reapply r33420, r33421. Fix a missing right parenthesis. https://xkcd.com/859/
2014-08-15 12:09:22 +00:00
fyodor
f6f59a7cd7
Auto regeneration with latest template files, etc.
2014-08-13 22:57:43 +00:00
jay
d4cf544df6
Fix a missing bracket at the end of the IMPORTANT NMAP LICENSE TERMS part in each file
2014-08-02 19:29:50 +00:00