tcpdump mailing list archives
Re: dlt_choice table in pcap.c
From: Guy Harris <gharris () sonic net>
Date: Thu, 4 Dec 2025 12:55:55 -0800
On Dec 4, 2025, at 12:34 PM, Guy Harris <gharris () sonic net> wrote:
Not using g_ascii_strcasecmp() in Wireshark caused a *crashing bug* in Wireshark in a Turkish locale (it was in code that was parsing some text configuration file; the problem was that a keyword was being compared with strcasecmp(), and the keyword contained the Roman-alphabet "i", and the match failed in a Turkish locale when case-insensitivity was required, and that was compounded by a null pointer being returned in the mismatch case and the validity of the pointer *not* being checked). After fixing both 1) the case-insensitive comparison and 2) the lack of a null-pointer check, I've remembered that quirk.
The full fun story is at https://gitlab.com/wireshark/wireshark/-/issues/2010 _______________________________________________ tcpdump-workers mailing list -- tcpdump-workers () lists tcpdump org To unsubscribe send an email to tcpdump-workers-leave () lists tcpdump org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
Current thread:
- dlt_choice table in pcap.c Michael Richardson (Dec 04)
- Re: dlt_choice table in pcap.c Guy Harris (Dec 04)
- Re: dlt_choice table in pcap.c Guy Harris (Dec 04)
- Re: dlt_choice table in pcap.c Guy Harris (Dec 04)
