ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Ethereal-dev: Re: [ethereal-dev] LPD Packages (SEG-FAULT)

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

From: Gilbert Ramirez <gram@xxxxxxxxxx>
Date: Wed, 15 Dec 1999 08:49:01 -0600
On Wed, Dec 15, 1999 at 12:00:33PM +0100, Gregor Glomm wrote:
> Hi,
> I have a trace with a few LPD connections made with the Novell
> LANALAZER.
> Opening the trace as normal user causes a SEG-FAULT.
> Ethereal have the u+s permissions set.
> Opening the trace as su works.
> 
> Here is the bt from gdb:
> 
> Starting program: /usr/local/bin/ethereal
>  
> Program received signal SIGSEGV, Segmentation fault.
> 0x80918d3 in dissect_lpd (pd=0x832e680 "", offset=54, fd=0x8386b40,
> tree=0x83121a4) at packet-lpd.c:125
> 125                             if (printer[END_OF_FRAME - 2] == 0x0a) {


Thanks. Yes, the LPD dissector is rather badly written (my fault) and is assuming
that it will see only text streams in the data. I'll provide you a fix shortly.

--gilbert