Package: mawk
Version: 1.3.3-17
Severity: normal

Hi, 

I have found a bug in mawk. I wanted to strip HTML tags the dirty way, and
wanted to make a perlish non greedy match  (i since discovered it wasn't
possible...), but on the way, i made a typo and executed this : 

# You don't want to run this ;)
mawk '{gsub("<.+*>"," ")} NF > 0 {print}' /tmp/html 

My computer was then half stuck, with _heavy_ memory allocation (malloc() bomb
like effect), mawk finally aborts when it has eaten all the RAM.

I know the RE is indeed stupid, i know it's an undefined behaviour, but my
system shouldn't be affected that way by a simple RE error :)

Please link '.+*' to '.+' (i don't know if it's sane...) or at least prevent 
the 
memory allocation hell !

Cheers, 

François.


--
System Information
Debian Release: 7.0
Architecture: amd64
Kernel: Linux 3.2.0-2-amd64 #1 SMP Fri Jun 1 17:49:08 UTC 2012 GNU/Linux

-- 
François "KnuckOne" Wendling (frwendling at free d0t fr)
GPG key: 048A18FE (pgp.mit.edu)


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to