node-pcap / node_pcap

libpcap bindings for node
MIT License
928 stars 253 forks source link

Fix OOB pointer while reading DNS name #289

Open sys7em-abotbyl opened 2 years ago

sys7em-abotbyl commented 2 years ago

Throw error if DNS Name segment length exceeds packet length. This check avoids a infinite loop in DNS.prototype.read_name