Bug 72757 - Hungarian grammar checking on long words freezes Lightproof and LibreOffice
Summary: Hungarian grammar checking on long words freezes Lightproof and LibreOffice
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Localization (show other bugs)
Version:
(earliest affected)
4.1.3.2 release
Hardware: Other All
: medium normal
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard: target:4.3.0 target:4.2.0.1 target:4.1.5
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-16 12:40 UTC by László Németh
Modified: 2013-12-16 14:21 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description László Németh 2013-12-16 12:40:15 UTC
CPython freezes using the following regex on a long word:

([a-z]+)+foo

A similar regex of the Hungarian grammar checking rules (1) freezes Lightproof grammar checking, and (2) trying to use other Python component (eg. LibreLogo) in LibreOffice will freeze LibreOffice, too.

Testing:

1. write the following line in a Hungarian document with Hungarian dictionary (it contains Hungarian grammar checking module) to test the work:

word ,

Lightproof will underline the space and comma.

2. freeze Python/Lightproof with the following line:

EEEJJJJJJJEEEEEEEJJJJJJJJEEEEEEEEJJJJJJJJEEEEEEJJJJJJJJEEEEE

3. check it:

word ,

Lightproof hasn't underlined the space and comma, yet.

4. freeze LibreOffice:

Click on one of the icons of the LibreLogo toolbar (Writer View->Toolbars....)
Comment 1 Commit Notification 2013-12-16 13:57:59 UTC
Laszlo Nemeth committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/dictionaries/commit/?id=569915c40dc4b3df1f75abe9e1202e0d66f03281

fdo#72757 fix Hungarian grammar checking (don't freeze Python)



The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds
Affected users are encouraged to test the fix and report feedback.
Comment 2 Commit Notification 2013-12-16 14:19:52 UTC
Laszlo Nemeth committed a patch related to this issue.
It has been pushed to "libreoffice-4-2":

http://cgit.freedesktop.org/libreoffice/dictionaries/commit/?id=5f8da97962f29a0e2216c1dd4fb8f78dfed9fc14&h=libreoffice-4-2

fdo#72757 fix Hungarian grammar checking (don't freeze Python)


It will be available in LibreOffice 4.2.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds
Affected users are encouraged to test the fix and report feedback.
Comment 3 Commit Notification 2013-12-16 14:21:11 UTC
Laszlo Nemeth committed a patch related to this issue.
It has been pushed to "libreoffice-4-1":

http://cgit.freedesktop.org/libreoffice/dictionaries/commit/?id=a776e2b888ba5d1824540e53d5002ff1ba050fe2&h=libreoffice-4-1

fdo#72757 fix Hungarian grammar checking (don't freeze Python)


It will be available in LibreOffice 4.1.5.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds
Affected users are encouraged to test the fix and report feedback.