octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #51589] crash on regexp


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #51589] crash on regexp
Date: Thu, 27 Jul 2017 13:42:34 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0

Follow-up Comment #2, bug #51589 (project octave):

Yeah I can easily reproduce this crash with a pathological test case like the
following:


subject = repmat ('a', 1, 1e5);  ## a very long string of aaaa...
pattern = '(a)+';
[S, E, TE, M, T, NM, SP] = regexp (subject, pattern)


It might be possible to experiment with the pcre settings on limiting
recursion to see if that helps, to avoid a segfault, but I don't know what
impact that has on performance or getting the results that the user wanted.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?51589>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]