Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-bugs: [Wireshark-bugs] [Bug 5463] "tshark -r file -T fields" is truncating exported da

Date: Sun, 5 Dec 2010 21:32:04 -0800 (PST)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5463

--- Comment #1 from Stephen Fisher <steve@xxxxxxxxxxxxxxxxxx> 2010-12-05 22:32:02 MST ---
The truncation is happening in /print.c at line 1494 (SVN revision 35126):

    call_data->fields->field_values[actual_index - 1] = ep_strbuf_new(value);

As you can see when I add a couple of g_warning() calls right after this line:

    g_warning("*** value = |%s|", value);
    g_warning("*** call_data->fields->field_values[actual_index - 1]->str =
|%s|", call_data->fields->field_values[actual_index - 1]->str);

sfisher@shadow:/usr/local/src/wireshark>./tshark -T fields -e data -r
~/captures/exportbug.pcap

** (process:1971): WARNING **: *** value =
|064343303135464446030143424343303102303630313030|

** (process:1971): WARNING **: *** call_data->fields->field_values[actual_index
- 1]->str = |06434330313546444603014342434330310230363031303|

(Posting this since I may not have a chance to finish working on it right now)

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.