Hi,
I'am using fieldtype BASE_CUSTOM and a callback function in my own
dissector.
Works well, but when I am calling val_to_str with a value which is not
inside the value_string list, then wireshark crashes.
This happens only when calling val_to_str inside the callback function.
When outside, then all is Ok (getting formatted result string on failure).
When I'm calling try_val_to_str_idx with a non existing value, then I
get -1 as index and NULL as result as expected, so I guess the problem is:
wmem_strdup_printf(wmem_packet_scope(), fmt, val);
Is there a limitation when I'm using format callbacks, or is this a bug?
--
Cheers
Thomas