Comment 28 for bug 1580385

Revision history for this message
Victor Tapia (vtapia) wrote :

#VERIFICATION EOAN

Running the following script:

$ cat repro.lua
#!/usr/bin/env lua
lpeg = require "lpeg"

p = lpeg.C(-lpeg.P{lpeg.P'x' * lpeg.V(1) + lpeg.P'y'})
p:match("xx")

- With the current version:

$ dpkg -l|grep lua-lpeg
ii lua-lpeg:amd64 1.0.0-2 amd64 LPeg library for the Lua language

$ ./repro.lua
[1] 4168 segmentation fault (core dumped) ./repro.lua

nmap segfaults too after a few runs (removing the service fingerprint first as mentioned in the comment #11):

$ count=1; while true; do nmap -sV 192.168.1.114 -Pn > /dev/null && ((count+=1)) || break; done; echo $count
7

- With the version in -proposed the script works as expected:

$ dpkg -l | grep lua-lpeg
ii lua-lpeg:amd64 1.0.0-2ubuntu0.19.10.1 amd64 LPeg library for the Lua language

$ ./repro.lua

$ echo $?
0

nmap works too (was manually stopped after 300+ runs):

$ count=1; while true; do nmap -sV 192.168.1.114 -Pn > /dev/null && ((count+=1)) || break; done; echo $count

$ echo $count
383