Ethereal-dev: Re: [Ethereal-dev] crash on reading tracefile ( NFS ? )

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Martin Regner" <martin.regner@xxxxxxxxx>
Date: Sun, 17 Nov 2002 09:38:07 +0100
Hi again,

It seems like I have the following variable contents when the crash occurs:
string_length_captured = 16384
string_length = 16384
string_length_packet = 16384
string_length_copy = 16384
exception = 0
fill_length_packet = 0
fill_length_captured = 0
string_buffer = "2 0 obj <</Type /Page      (and so on ....)
string_buffer_print = "<DATA>"
string_data = 0
tree <> 0
string_tree <> 0
offset = 132 (128 + 4)  since it has been incremented just some line before the crash occurs.

Should maybe the lines:
---------------------------------
   proto_tree_add_bytes_format(string_tree,
       hfindex, tvb, offset, string_length_copy,
    string_buffer_print,
    "contents: %s", string_buffer_print);
be changed into something like:
--------------------------------------------
   proto_tree_add_bytes_format(string_tree,
       hfindex, tvb, offset, string_length_copy,
    string_buffer,
    "contents: %s", string_buffer_print);

string_buffer contains the 16384 byte data "2 0 obj <</Type /Page      (and so on ....)
string_buffer_print is just the string "<DATA>"

I'm having some problems to build right now. I will se if I can sort that out.

Regards,
  Martin