nDPI/utils
Ivan Nardi dd8be1fcb1
Fix some warnings reported by CODESonar (#2227)
Remove some unreached/duplicated code.

Add error checking for `atoi()` calls.

About `isdigit()` and similar functions. The warning reported is:
```
Negative Character Value help
isdigit() is invoked here with an argument of signed type char, but only
has defined behavior for int arguments that are either representable
as unsigned char or equal to the value of macro EOF(-1).
Casting the argument to unsigned char will avoid the undefined behavior.
In a number of libc implementations, isdigit() is implemented using lookup
tables (arrays): passing in a negative value can result in a read underrun.
```
Switching to our macros fix that.
Add a check to `check_symbols.sh` to avoid using the original functions
from libc.
2024-01-12 13:30:43 +01:00
..
asn_update.sh Remove duplicate addreess list (#2151) 2023-11-16 20:08:06 +01:00
aws_ip_addresses_download.sh IP lists: aggregate addresses wherever possible (#2152) 2023-11-17 12:26:23 +01:00
azure_ip_addresses_download.sh IP lists: aggregate addresses wherever possible (#2152) 2023-11-17 12:26:23 +01:00
bitcoinnodes.sh Improved helper scripts. (#1986) 2023-05-28 12:45:44 +02:00
bitcoinnodes_v4v6.sh Tool for creating bitcoing IP files 2023-10-26 00:01:44 +02:00
cachefly_ip_addresses_download.sh IP lists: aggregate addresses wherever possible (#2152) 2023-11-17 12:26:23 +01:00
check_symbols.sh Fix some warnings reported by CODESonar (#2227) 2024-01-12 13:30:43 +01:00
cloudflare_ip_addresses_download.sh IP lists: aggregate addresses wherever possible (#2152) 2023-11-17 12:26:23 +01:00
common.sh ProtonVPN: add basic detection (#2006) 2023-06-08 16:52:55 +02:00
crawlers_ip_addresses_download.sh IP lists: aggregate addresses wherever possible (#2152) 2023-11-17 12:26:23 +01:00
ethereum_ip_addresses_download.sh IP lists: aggregate addresses wherever possible (#2152) 2023-11-17 12:26:23 +01:00
gambling_sites_download.sh Improved belgium gambling sites regex. (#2184) 2023-11-29 16:15:23 +01:00
get_routes6_by_asn.sh ipv6: add support for ipv6 addresses lists (#2113) 2023-10-26 20:15:44 +02:00
get_routes_by_asn.sh Added Edgecast and Cachefly CDNs. (#1540) 2022-05-07 09:33:25 +02:00
google.py Improved ASN/IP update scripts and CI integration. (#1474) 2022-03-09 13:53:04 +01:00
google6.py ipv6: add support for ipv6 addresses lists (#2113) 2023-10-26 20:15:44 +02:00
google_cloud_ip_addresses_download.sh IP lists: aggregate addresses wherever possible (#2152) 2023-11-17 12:26:23 +01:00
google_ip_addresses_download.sh IP lists: aggregate addresses wherever possible (#2152) 2023-11-17 12:26:23 +01:00
hostname2list.py Improved helper scripts. (#1986) 2023-05-28 12:45:44 +02:00
icloud_private_relay_ip_addresses_download.sh ipv6: add support for ipv6 addresses lists (#2113) 2023-10-26 20:15:44 +02:00
ipaddr2list.py ipv6: add support for ipv6 addresses lists (#2113) 2023-10-26 20:15:44 +02:00
malicious_sites_download.sh Added malicious sites from the polish cert. (#2121) 2023-11-02 09:04:04 +01:00
mergeipaddrlist.py Ip address list: aggregate Mullvad and Tor lists too (#2154) 2023-11-21 08:28:32 +01:00
microsoft_ip_addresses_download.sh IP lists: aggregate addresses wherever possible (#2152) 2023-11-17 12:26:23 +01:00
mullvad_ip_addresses_download.sh Ip address list: aggregate Mullvad and Tor lists too (#2154) 2023-11-21 08:28:32 +01:00
protonvpn_ip_addresses_download.sh ipv6: add support for ipv6 addresses lists (#2113) 2023-10-26 20:15:44 +02:00
tor_ip_addresses_download.sh Ip address list: aggregate Mullvad and Tor lists too (#2154) 2023-11-21 08:28:32 +01:00
update_every_lists.sh Added malicious sites from the polish cert. (#2121) 2023-11-02 09:04:04 +01:00
verify_dist_tarball.sh tests: restore some old paths as symbolic links (#2050) 2023-07-16 13:47:35 +02:00
whatsapp_ip_addresses_download.sh IP lists: aggregate addresses wherever possible (#2152) 2023-11-17 12:26:23 +01:00
zoom_ip_addresses_download.sh IP lists: aggregate addresses wherever possible (#2152) 2023-11-17 12:26:23 +01:00