Wireshark mailing list archives
Is there a need for a 0, NULL element at the end of value strings
From: Richard Sharpe <realrichardsharpe () gmail com>
Date: Tue, 16 Oct 2018 08:24:45 -0700
Hi folks,
I have always put a {0, NULL} element on the end of value strings, but
it seems the lua code for constructing value strings when you use
ProtoField(..., some_value_string) does not terminate the list with an
empty element, and my test did not cause a crash.
Rather, I got an "unknown" field as expected.
Can anyone confirm they are not needed?
--
Regards,
Richard Sharpe
(何以解憂?唯有杜康。--曹操)(传说杜康是酒的发明者)
___________________________________________________________________________
Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives: https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- Is there a need for a 0, NULL element at the end of value strings Richard Sharpe (Oct 16)
- Re: Is there a need for a 0, NULL element at the end of value strings Pascal Quantin (Oct 16)
- Re: Is there a need for a 0, NULL element at the end of value strings Richard Sharpe (Oct 16)
- Re: Is there a need for a 0, NULL element at the end of value strings Guy Harris (Oct 16)
- Re: Is there a need for a 0, NULL element at the end of value strings Richard Sharpe (Oct 16)
- Re: Is there a need for a 0, NULL element at the end of value strings Guy Harris (Oct 16)
