Bug 105417 - Automatic hypenation goes into infinite loop
Summary: Automatic hypenation goes into infinite loop
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Miklos Vajna
URL:
Whiteboard: target:5.4.0 target:5.3.1 target:5.2.6
Keywords:
Depends on:
Blocks: Spell-Checking
  Show dependency treegraph
 
Reported: 2017-01-18 16:16 UTC by Miklos Vajna
Modified: 2017-01-19 16:02 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Writer reproducer. (9.02 KB, application/vnd.oasis.opendocument.text)
2017-01-18 16:16 UTC, Miklos Vajna
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Miklos Vajna 2017-01-18 16:16:44 UTC
Created attachment 130532 [details]
Writer reproducer.

Steps to reproduce:

1) Open the bugdoc
2) Go to Tools -> Language -> Hyphenate -> Hyphenate all

Expected result: soft hyphens are added in the document.

Actual result: Writer hangs.
Comment 1 Commit Notification 2017-01-19 12:19:59 UTC
Miklos Vajna committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=1b6fa616087e7415be9dc7113bbd8bf381aadd70

tdf#105417 sw hyphenation: avoid infinite loop on zero-length last line

It will be available in 5.4.0.

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 2017-01-19 16:00:55 UTC
Miklos Vajna committed a patch related to this issue.
It has been pushed to "libreoffice-5-3":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=bb895db932ac8ed5b8c2d221ac7268b2d787194d&h=libreoffice-5-3

tdf#105417 sw hyphenation: avoid infinite loop on zero-length last line

It will be available in 5.3.1.

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 2017-01-19 16:02:22 UTC
Miklos Vajna committed a patch related to this issue.
It has been pushed to "libreoffice-5-2":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=1cba69762fc0a2d586bcfdf0893a6177aa63dfc4&h=libreoffice-5-2

tdf#105417 sw hyphenation: avoid infinite loop on zero-length last line

It will be available in 5.2.6.

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.