URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=95c884e78f8ad2ded63cb237e5aa776ebe374b43
Submitter: Peter Wu (peter@xxxxxxxxxxxxx)
Changed: branch: master-2.4
Repository: wireshark
Commits:
95c884e by Peter Wu (peter@xxxxxxxxxxxxx):
dns: fix null pointer deref for empty name in SRV record
Per RFC 2782, the name should follow the "_Service._Proto.Name" format.
If a malformed packet does not adhere to this and provides a zero-length
name, then wmem_strsplit returns NULL.
Bug: 14681
Change-Id: I7b9935238a9800a1526c8b694fd2c63d3b488d0b
Link: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7416
Reviewed-on: https://code.wireshark.org/review/27499
Petri-Dish: Peter Wu <peter@xxxxxxxxxxxxx>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@xxxxxxxxx>
(cherry picked from commit 843735e0efe03f601ed69f69e5295974aad927b2)
Reviewed-on: https://code.wireshark.org/review/27530
Reviewed-by: Peter Wu <peter@xxxxxxxxxxxxx>
Actions performed:
from 7c89f7e DNS: replace g_strsplit by wmem_strsplit
adds 95c884e dns: fix null pointer deref for empty name in SRV record
Summary of changes:
epan/dissectors/packet-dns.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)