Package: sgrep
Version: 1.92a-10
Severity: normal

Hello!

%cat example.html
<TITLE> bla </TITLE>

% sgrep 'stag("TITLE")' example.html

-> Segmentation fault.

Problem is in the code base (sgml.c) where a buffer is accessed with
index -1 (line 1013 in sgrep-1.92a) Fixing this by changing the default
value from i=-1; to i=0 fixes this for smaller input files, more complex
ones still barf out a segfault.

Cheers


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages sgrep depends on:
ii  libc6                         2.3.5-7    GNU C Library: Shared libraries an
ii  m4                            1.4.4-1    a macro processing language

sgrep recommends no packages.

-- no debconf information


--------------------------------------------------------------------------------
The information contained herein is confidential and is intended solely for the
addressee. Access by any other party is unauthorised without the express
written permission of the sender. If you are not the intended recipient, please
contact the sender either via the company switchboard on +44 (0)20 7623 8000, or
via e-mail return. If you have received this e-mail in error or wish to read our
e-mail disclaimer statement and monitoring policy, please refer to 
http://www.drkw.com/disc/email/ or contact the sender. 3167
--------------------------------------------------------------------------------



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to