Cleanly fetch the query string.
authorGuy Harris <guy@alum.mit.edu>
Thu, 26 Dec 2019 09:24:24 +0000 (01:24 -0800)
committerGuy Harris <guy@alum.mit.edu>
Thu, 26 Dec 2019 10:14:03 +0000 (10:14 +0000)
commitaebe01806169f5974c76b00d7408d56ea2e887a4
tree78cf29bde7a642fbb61c9dc7e46642faf84babdf
parent4010996d8e7349eb021ff9585c206d74c425011e
Cleanly fetch the query string.

Use tvb_get_string_enc(), because it guarantees null termination, unlike
tvb_memdup(), and use ENC_ASCII|ENC_NA as the encoding, to convert
non-ASCII characters to Unicode REPLACEMENT CHARACTER (there is *no*
standard for the encoding of WHOIS texts other than "ASCII"; we use
ENC_ASCII|ENC_NA elsewhere).

Bug: 16298
Change-Id: I6b7ff2a1af3997e8426ca07bea1ce68fe9cbc9c6
Reviewed-on: https://code.wireshark.org/review/35564
Petri-Dish: Guy Harris <guy@alum.mit.edu>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <guy@alum.mit.edu>
epan/dissectors/packet-whois.c