[erlang-patches] pcre compile workspace overflow

Björn Gustavsson bgustavsson@REDACTED
Fri Mar 19 14:59:01 CET 2010


On Fri, Mar 19, 2010 at 2:02 AM, Michael Santos
<michael.santos@REDACTED> wrote:
>
> A large pattern can overflow the buffer used to hold the compiled
> regexp, as reported here:
>
> http://www.erlang.org/cgi-bin/ezmlm-cgi/2/1289
>
> So, running the following will crash the emulator on some platforms:
>
> N = 819, re:compile([lists:duplicate(N, $(), lists:duplicate(N, $))]).
>
> Here is a patch:
>
> git fetch git://github.com/msantos/otp.git pcre-compile-workspace-overrun
>

Thanks! I will include it in the 'pu' branch.

The next time it would be better if you based the patched on the 'dev'
branch and not on R13B03 which is not even the latest release.
No problem this time, since I could rebase onto 'dev' without any
conflicts.

-- 
Björn Gustavsson, Erlang/OTP, Ericsson AB


More information about the erlang-patches mailing list