Assaf Gordon has been doing heroic work in finding crashes in the regex code, and two fixes found as part of that process are ready to go in. I'll follow up with copies of proposed patches, one found by his work and one minor cleanup I found by code inspection. With luck, Assaf will have more fixes later.