[pcre-dev] [Bug 1626] coredump at least since 8.35 with expression "[\]\)"
https://bugs.exim.org/show_bug.cgi?id=1626 --- Comment #2 from Markus bergholz--- I've no idea how to use `pcretest` from Input file. cat xlsread.m | pcretest seems to be completly wrong. When just starting pcretest, I can enter the regular expression, but then I dunno how to enter all lines of my file in the data> section (I need multiple-line matche to hit it I guess). (In reply to Philip Hazel from comment #1) > I'm afraid I know nothing about GNU Octave and how it uses libpcre. I have > tried to reproduce errors using the pcretest program, and cannot do so. Can > you try putting your test pattern into pcretest and see if it crashes there? > A simple test with "[\]\)" correctly gives a compiling error for a missing ] > terminator. -- You are receiving this mail because: You are on the CC list for the bug. -- ## List details at https://lists.exim.org/mailman/listinfo/pcre-dev
[pcre-dev] [Bug 1626] coredump at least since 8.35 with expression "[\]\)"
https://bugs.exim.org/show_bug.cgi?id=1626 --- Comment #3 from Philip Hazel--- cat xlsread.m | pcretest should work OK, if xlsread.m contains suitable pcretest input. "man pcretest" documents the format, but it is quite simple, just lines of the form /somepattern/[] a data subject to match another data subject to match [] /another pattern/ more data ... Looking at your code, it looks as though you are searching an entire file. This is harder to arrange in pcretest, as it all needs to be in one line, with \n for each newline. I have now done this, and reproduced your crash in pcretest. Now I can start trying to figure out what is happening. Incidentally, in the new API version of PCRE (called PCRE2) this example does not crash. Although development is concentrated on PCRE2, we are still fixing bugs in PCRE1, so unless this is totally impossible, I should be able to fix it. -- You are receiving this mail because: You are on the CC list for the bug. -- ## List details at https://lists.exim.org/mailman/listinfo/pcre-dev
[pcre-dev] [Bug 1626] coredump at least since 8.35 with expression [\]\)
https://bugs.exim.org/show_bug.cgi?id=1626 --- Comment #1 from Philip Hazel p...@hermes.cam.ac.uk --- I'm afraid I know nothing about GNU Octave and how it uses libpcre. I have tried to reproduce errors using the pcretest program, and cannot do so. Can you try putting your test pattern into pcretest and see if it crashes there? A simple test with [\]\) correctly gives a compiling error for a missing ] terminator. -- You are receiving this mail because: You are on the CC list for the bug. -- ## List details at https://lists.exim.org/mailman/listinfo/pcre-dev