Replying to my own post, I know - bad form. ;)

I discovered that the bug comes form the use of the unitialized variable 
print_args.format in wtap_dispatch_cb_print().  If you want to get a hex dump of the 
packet without the added information -V information, tethereal used print_args.format 
instead of the global "static int print_format" variable.

Changing the call to print_hex_data() to use print_format fixed this issue for me.  
Patch attached.

Thanks!

-Joshua Wright
[EMAIL PROTECTED]


-----Original Message-----
From:   Joshua Wright
Sent:   Wed 2004-01-21 3:03 PM
To:     [EMAIL PROTECTED]
Cc:     
Subject:        assert error in print.c
When reading through a capture file with tethereal, I got the following error:

[EMAIL PROTECTED]:~/latitude$ tethereal -x -r asleap-example-short.dump
  1   0.000000 AironetW_55:75:f5 -> Broadcast    IEEE 802.11 Beacon frame

** ERROR **: file print.c: line 691 (print_line): should not be reached
aborting...
Aborted
[EMAIL PROTECTED]:~/latitude$ echo $?
134
[EMAIL PROTECTED]:~/latitude$ uname -a
Linux pos1 2.4.22 #6 Tue Sep 2 17:43:01 PDT 2003 i686 unknown unknown GNU/Linux
[EMAIL PROTECTED]:~/latitude$ tethereal -v
tethereal 0.10.0a
Compiled with GLib 1.2.10, with libpcap current-cvs.tcpdump.org.2004.01.15,
with libz 1.1.4, with libpcre 4.4, without UCD-SNMP or Net-SNMP, without ADNS.
Running with libpcap version current-cvs.tcpdump.org.2004.01.15 on Linux 2.4.22
[EMAIL PROTECTED]:~/latitude$

I've attached the capture file and this text for reference.  Thanks.

-Joshua Wright
[EMAIL PROTECTED]



Attachment: print_format-bug.diff
Description: print_format-bug.diff

_______________________________________________
Ethereal-dev mailing list
[EMAIL PROTECTED]
http://www.ethereal.com/mailman/listinfo/ethereal-dev

Reply via email to