Bug 88650 - OpenCL: backslashes in blacklist and whitelist entries
Summary: OpenCL: backslashes in blacklist and whitelist entries
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
4.4.0.2 rc
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-21 03:33 UTC by Robinson Tryon (qubit)
Modified: 2016-03-05 19:15 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
[Screenshot] Backslashes appearing in the OpenCL whitelist/blacklist (87.97 KB, image/png)
2015-01-21 03:33 UTC, Robinson Tryon (qubit)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robinson Tryon (qubit) 2015-01-21 03:33:56 UTC
Created attachment 112579 [details]
[Screenshot] Backslashes appearing in the OpenCL whitelist/blacklist

On Ubuntu 14.04 + LO 4.4.0.2

REPRO Steps
1) Open LibreOffice
2) Tools -> Options -> LibreOffice -> OpenCL
3) Look at the strings listed on the whitelist and blacklist: they appear to have backslashes escaping some (but not all) of the non-alphanumeric characters

EXPECTED: No backslashes in these strings
Comment 1 Matthew Francis 2015-01-21 10:04:57 UTC
Reproduced on Ubuntu 14.04 and OSX 10.10 / LO 4.4.0.2

-> NEW
Comment 2 Markus Mohrhard 2016-03-05 14:50:59 UTC
The strings there are regular expressions so we need to escape the characters with special meaning '(', ')' and '.'. The string later goes into icu's regex matcher.
Comment 3 Tor Lillqvist 2016-03-05 19:15:22 UTC
Further: Even if there currently are no entries in the list, as bundled with LibreOffice, that would make use of regular expression features, there is nothing that guarantees that we won't need to use actual regular expressions in the future.