[Libreoffice-bugs] [Bug 132211] New: Crash if Replacing with Particular Regex

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat Apr 18 08:10:25 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=132211

            Bug ID: 132211
           Summary: Crash if Replacing with Particular Regex
           Product: LibreOffice
           Version: 6.4.2.2 release
          Hardware: x86-64 (AMD64)
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: richardchung0907 at gmail.com

Description:
A specifically designed regex can make crash of Writer. Probably due to find &
replace the regex "with format like yellow highlighted". 

Steps to Reproduce:
1.Create a new document in LibreOffice Writer


2.Type the document's content is as follow:
    Abc, 1
    Def, 2, 3, 4
    Ghi, 5, 6, 7


3.Use find & replace with the following Regular Expression to find (and must
specified "no bold" for the format match):


(?!\w+ly\b|a\b|about\b|above\b|according\b|across\b|after\b|against\b|all\b|along\b|also\b|although\b|always\b|among\b|an\b|and\b|another\b|any\b|anybody\b|anyone\b|anything\b|around\b|as\b|as
if\b|as long as\b|as much as\b|as soon as\b|as though\b|assuming
that\b|at\b|be\b|because\b|been\b|before\b|behind\b|besides\b|between\b|beyond\b|both\b|but\b|by\b|by
the
time\b|called\b|can\b|concerning\b|Consequent\b|could\b|despite\b|did\b|do\b|down\b|during\b|each\b|either\b|even
if\b|even
though\b|ever\b|everybody\b|everyone\b|everything\b|except\b|few\b|Finally\b|First\b|following\b|for\b|forever\b|from\b|Furthermore\b|had\b|has\b|have\b|he\b|hence\b|her\b|hers\b|herself\b|him\b|himself\b|his\b|how\b|However\b|I\b|if\b|in\b|In
addition\b|in case\b|in order\b|in spite
of\b|including\b|instead\b|into\b|it\b|its\b|it's\b|itself\b|lest\b|like\b|likewise\b|many\b|may\b|me\b|meanwhile\b|might\b|mine\b|more\b|moreover\b|most\b|my\b|myself\b|near\b|neither\b|never\b|nevertheless\b|next
to\b|no\b|no one\b|nobody\b|none\b|nonetheless\b|nor\b|nothing\b|now
that\b|of\b|off\b|often\b|on\b|On the other hand\b|once\b|one\b|only
if\b|or\b|other\b|others\b|otherwise\b|our\b|ours\b|ourselves\b|out\b|over\b|provided
that\b|rather\b|rather
than\b|Second\b|several\b|shall\b|she\b|should\b|since\b|so\b|so
that\b|some\b|somebody\b|someone\b|something\b|somwtimes\b|still\b|such\b|than\b|that\b|the\b|their\b|theirs\b|them\b|themselves\b|then\b|Therefore\b|these\b|they\b|Third\b|this\b|those\b|though\b|through\b|throughout\b|thus\b|till\b|to\b|towards\b|under\b|unless\b|until\b|up\b|upon\b|us\b|was\b|we\b|were\b|what\b|whatever\b|when\b|whenever\b|where\b|whereas\b|wherever\b|whether\b|which\b|whichever\b|while\b|who\b|whoever\b|whom\b|whomever\b|whose\b|why\b|will\b|with\b|within\b|without\b|would\b|yet\b|you\b|your|must\b|yours\b|are\b|is\b|just\b|yourself\b|yourselves\b|meaning\b|mean\b|means\b|meant\b|way\b|ways\b|thereby\b|there\b|not\b|cause\b|causes\b|caused\b|causing\b|make\b|makes\b|made\b|making\b|ch\b|ch\.\b|chapter\b|introduce\b|introduced\b|introduces\b|introducing\b|introduction\b|\d+\b|[a-z]\b)(\b\w+)


4.To replace with the following (and must specified font color: "yellow",
highlighted: "yellow" for the format match):


$1


5. Put the carriage to the beginning of the document's content.


6. Start press "Replace" button(not Replace ALL) on Find & Replace window, it
will work fine at the beginning.


7. Continuously press "Replace" button few times(maybe less than 5 or 6 times),
it crash.

Actual Results:
Crash, Not Response

Expected Results:
Turn each text separated by comma into yellow highlighted & yellow in font
color.


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 6.3.5.2 (x86)
Build ID: dd0751754f11728f69b42ee2af66670068624673
CPU threads: 8; OS: Windows 10.0; UI render: GL; VCL: win; 
Locale: en-US (en_US); UI-Language: en-US
Calc: CL

Also tried in v6.4.2

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200418/1b03c327/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list