Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#875 Hang with actionsfile rule with backreference

version 3.0
open
nobody
None
5
2014-04-14
2014-04-13
Adam Piggott
No

Privoxy version: 3.0.21
Operating system: Windows 7 SP1 64-bit

Using a minimal configuration and a single actions file rule with backreferencing:
{+block{Crashes Privoxy}}
/([a-z])\1

Privoxy hangs when trying to access a matching URL ( http://example/aa ) or the Privoxy URL lookup page for a matching URL. Attached are the config used, sample actions file and log files. I have also generated a crash dump of the process which can be supplied if it will be helpful.

1 Attachments

Discussion

  • Fabian Keil
    Fabian Keil
    2014-04-14

    Thanks for the report.

    This may be a Windows-only issue, at least I can't reproduce the problem
    on FreeBSD and get the expected error message:
    "error compiling /([a-z])\1 from /([a-z])\1: bad back reference at offset 11".

    Back references are disabled in compile_pattern(), removing the REG_NOSUB
    flag should enable them.