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
dmiller
c9714990c7
Remove trailing whitespace from C/C++ files
...
https://secwiki.org/w/Nmap/Code_Standards
2014-02-12 20:25:51 +00:00
d33tah
ccd0c02a4c
Add a lacking space in the license comment. The command I used to do this is:
...
for file in `grep "* including the terms and conditions of this license text as well. \*" * -r --files-with-match `; do sed "s/\* including the terms and conditions of this license text as well. \*/* including the terms and conditions of this license text as well. */g" -i $file; done
2013-09-11 19:06:20 +00:00
fyodor
6e01ecd452
Update an email address, fix a typo, and slightly reword a sentence.
2013-07-30 00:02:00 +00:00
fyodor
83fb10ec56
Update the Nmap copyright/license files. This isn't the new Nmap Public Source License we've been discussing on the list, but rather just a 'quick patch' to hopefully prevent some of the abuse we've been seeing from companies lately. More details on the changes will be posted to the dev list. Also, the copyright year was updated to 2013 (which is the only change to Nsock license statements).
2013-07-28 22:05:05 +00:00
david
da88c7f26a
Whitespace.
2013-01-08 04:37:34 +00:00
fyodor
6a42ef47c0
Update the Nmap and Nsock source code headers to note new Nmap dev mailing list email address and a better URL for Nmap license.
2012-12-06 01:21:42 +00:00
henri
68a1545c83
Added missing SVN properties and Id tags
2012-09-10 20:53:09 +00:00
sean
87768241ec
Fixed the warning about signed and unsigned comparision by changing j into an unsigned variable.
2012-06-10 17:30:40 +00:00
david
2e8f418d2c
Remove byte order dependency in in_addr_to_octets.
...
Because in_addr is stored in network byte order, this function could
extract the octets in MSB-to-LSB order or in LSB-to-MSB order. This
didn't matter in the case of resolved names, because the same order was
used when generating the octet array and later when matching against it.
But the function parse_ipv4_ranges, which handles literal IPv4
addresses, always uses octet[0] as the MSB, so comparisons failed in
later matching.
As it was, the code worked on little-endian architectures but didn't on
big-endian.
2012-04-17 04:36:08 +00:00
fyodor
684f42c4ad
One more adjustment to the license text. Notes that Zenmap, Ncat, and Nping use this license. Note that contributions made directly in the src repository are treated the same as those in the mailing list.
2012-03-01 06:53:35 +00:00
fyodor
e96a7b7b24
Update the headers for each code file. This updates code copyright dates to 2012, notes the awesome NSE in the list of technology, and slightly rewords the derivative works clarification
2012-03-01 06:32:23 +00:00
david
d4feb365e2
Print IPv4 octect bit vectors in the opposite order (big endian).
2011-12-08 23:16:55 +00:00
david
ab82ccd033
Set field width based on sizeof(bitvector_t).
2011-12-08 23:16:54 +00:00
david
69c6779965
Remove extra line output in addrset_elem_print.
2011-12-08 23:16:54 +00:00
david
a7a763ee52
Let addrset_elem_print take a FILE * argument.
2011-12-08 23:16:53 +00:00