Ethereal-users: [Ethereal-users] Netlib SQL decoder crashes

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

From: Dave Aitel <dave@xxxxxxxxxxxxxxx>
Date: Tue, 19 Nov 2002 14:28:21 -0500
I'm using a isqlw.exe to connect to a MSSQL 2000 SP0 server and the
decoder is crashing...

Attached is the .cap, and below is the backtrace. I still have this core
file hanging around for at least a little while, if someone wants it. :>
I tried to debug it myself, but I can't really figure it out. For some
reason, the colums value is set to 1, which is then getting
dereferenced...
-dave


(gdb) where
#0  0x081b979a in tds_get_row_size (tvb=0x85fb694, nl_data=0xbfffc850, 
    offset=31, last_byte=41) at packet-tds.c:557
#1  0x081ba135 in dissect_tds (tvb=0x85fb694, pinfo=0x85fb448, tree=0x0,
#
    nl_data=0xbfffc850, offset=30) at packet-tds.c:946
#2  0x081ba579 in dissect_netlib (tvb=0x85fb694, pinfo=0x85fb448,
#tree=0x0)
    at packet-tds.c:1107
#3  0x08243119 in dissector_try_heuristic (sub_dissectors=0x84ebd30, 
    tvb=0x85fb694, pinfo=0x85fb448, tree=0x0) at packet.c:935
#4  0x081b83c1 in decode_tcp_ports (tvb=0x85fb590, offset=32, 
    pinfo=0x85fb448, tree=0x0, src_port=139489576, dst_port=45409)
    at packet-tcp.c:1623
#5  0x081b8ce6 in dissect_tcp (tvb=0x85fb590, pinfo=0x85fb448, tree=0x0)
    at packet-tcp.c:1978
#6  0x08242a8d in dissector_try_port (sub_dissectors=0x85fb694, port=6, 
    tvb=0x85fb590, pinfo=0x0, tree=0x0) at packet.c:574
#7  0x080f7ade in dissect_ip (tvb=0x85fb448, pinfo=0x85fb448, tree=0x0)
    at packet-ip.c:1055
#8  0x08242a8d in dissector_try_port (sub_dissectors=0x85fb694,
#port=2048, 
    tvb=0x85fb55c, pinfo=0x85fb448, tree=0x0) at packet.c:574
#9  0x080d2a3a in ethertype (etype=2048, tvb=0x85fb528, 
    offset_after_etype=14, pinfo=0x85fb448, tree=0x0, fh_tree=0x0, 
    etype_id=2110, trailer_id=2112) at packet-ethertype.c:155
#10 0x080d233a in dissect_eth (tvb=0x85fb528, pinfo=0x85fb448, tree=0x0)
    at packet-eth.c:237
#11 0x08242a8d in dissector_try_port (sub_dissectors=0x85fb694, port=1, 
    tvb=0x85fb528, pinfo=0x85fb448, tree=0x0) at packet.c:574
#12 0x080d9765 in dissect_frame (tvb=0x85fb528, pinfo=0x85fb448,
#tree=0x0)
    at packet-frame.c:173
#13 0x082435aa in call_dissector (handle=0x84f65e8, tvb=0x85fb528, 
    pinfo=0x85fb448, tree=0x0) at packet.c:1094
#14 0x08242727 in dissect_packet (edt=0x85fb440,
#pseudo_header=0x85fb694, 
    pd=0x85fae30 "", fd=0x8631b88, cinfo=0x85fb448) at packet.c:299
#15 0x081eb020 in add_packet_to_packet_list (fdata=0x8631b88,
#cf=0x84db740, 
    pseudo_header=0x85fc7fc, buf=0x85fae30 "", refilter=1) at file.c:680
#16 0x081eb2ec in read_packet (cf=0x84db740, offset=4306) at file.c:823

Attachment: mssql.cap
Description: Binary data