[liblouis-liblouisxml] Re: More on the bug with hyphenate in python bindings

  • From: James Teh <jamie@xxxxxxxxxxxx>
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Fri, 15 Jun 2012 19:35:18 +1000

Hi.
Are you absolutely certain you're running the latest code from svn, including both the C code and Python bindings? This really does sound like the same buffer overrun.

Jamie

On 15/06/2012 5:04 PM, Hammer Attila wrote:
Hy,

This patch purpose only debugging, don't commit!
Look the results, very interesting.
If I running the prewious wrote code in Python 2.7, I see following
debugging output when louis.hyphenate try hyphenating the
Kaposszerdahely word:
"root@hammera-Satellite-L300:/# python test.py
('original text length: ', 15)
Hyphenation succesfuly happened.
('Hyphenation string length: ', 15)
('Hyphenation mask: ', u'001000000101000')
Try returning hyphenation mask.
Segmentation fault (core dumped)"

If I see right, hyphenation succesfuly happened, the return related code
line producing the segmentation fault, I don't no yet why.

Look what happening if I writing for example the Agyagosszergény word my
word tester elvalaszt.py Python script, now I running my elvalaszt.py
code with Python3:
"root@hammera-Satellite-L300:/# python3.2 elvalaszt.py
Enter hyphenating word: Agyagosszergény
original text length:  15
Hyphenation succesfuly happened.
Hyphenation string length:  15
Hyphenation mask:  000010000001000
Try returning hyphenation mask.
Segmentation fault (core dumped)"

Hope this information helps,

Attila


--
James Teh
Director, NV Access Limited
Email: jamie@xxxxxxxxxxxx
Web site: http://www.nvaccess.org/
Phone: +61 7 5667 8372
For a description of the software, to download it and links to
project pages go to http://www.abilitiessoft.com

Other related posts: