The GitHub Actions job "CodeQL Analysis" on 
libcloud.git/fix-is-valid-ip-address-null-byte has failed.
Run started by GitHub user Ashishjob (triggered by Ashishjob).

Head commit for run:
86299b6238ff610618dfe7dc09fbba51e3911a95 / Ashishjob <[email protected]>
Fix is_valid_ip_address raising ValueError on embedded null byte

socket.inet_pton raises ValueError (not OSError) when the address string
contains an embedded null byte, e.g. "1.2.3.4\x00". is_valid_ip_address only
caught OSError, so such input propagated the ValueError instead of being
reported as invalid. A validity predicate should return False for a malformed
address, never raise.

Catch ValueError as well and add regression cases (IPv4 and IPv6 addresses
with embedded null bytes) to test_is_valid_ip_address.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

Report URL: https://github.com/apache/libcloud/actions/runs/33600549447

With regards,
GitHub Actions via GitBox

Reply via email to