pcrs_compile_replacement(): Fix multiple segfaults and memory leaks
authorFabian Keil <fk@fabiankeil.de>
Sat, 24 Jan 2015 16:40:59 +0000 (16:40 +0000)
committerFabian Keil <fk@fabiankeil.de>
Sat, 24 Jan 2015 16:40:59 +0000 (16:40 +0000)
commit37b60a3260c885bfa3f33d94a186a2741fca52f5
treea8831950b408f2a3dcd12e8393a75bc86acf15ba
parent60194c5ce38b0f09a7b95dcf5651710c6263a4ec
pcrs_compile_replacement(): Fix multiple segfaults and memory leaks

... and report errors more reliably. Previously some invalid
pcrs commands were silently accepted but didn't work as expected.

Partially discovered with afl-fuzz.
pcrs.c