[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[FD] NetBSD overflow



Hi,

Trivial overflow in hfslib_reada_node_offset, while loop has no range checks.

|size_t hfslib_reada_node_offsets(void* in_bytes, uint16_t* out_offset_array) { void* ptr; if (in_bytes == NULL || out_offset_array == NULL) return 0; ptr = in_bytes; out_offset_array--; do { out_offset_array++; *out_offset_array = be16tohp(&ptr); } while (*out_offset_array != (uint16_t)14); return ((uint8_t*)ptr - (uint8_t*)in_bytes); }|

Repro is here https://github.com/fuzzingrf/netbsd_hfs

_______________________________________________
Sent through the Full Disclosure mailing list
https://nmap.org/mailman/listinfo/fulldisclosure
Web Archives & RSS: https://seclists.org/fulldisclosure/