/usr/share/pyshared/mx/TextTools/mxTextTools/testSegFault.py is in python-egenix-mxtexttools 3.2.1-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | #
# Bug (segfault) reported by
# Date: Wed, 25 Jan 2006 14:29:34 +0100
# From: Reinhard Engel <nc-engelre@netcologne.de>
#
from mx.TextTools import *
tagtable = (
(None, Word, '<p'),
(None, IsNot, '>', +1, 0),
(None, Is, '>', MatchFail, MatchOk),
)
# This works
str1 = '<p class="nummer" abc>'
print tag(str1, tagtable)
# This segfaults
str2 = '<p class="nummer" abc'
print tag(str2, tagtable)
|