Commit 2364f8c3 authored by Austin Clements's avatar Austin Clements

Don't crash for regexps > 19 characters.

R=r
APPROVED=r
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=34216
CL=34220
parent 59db1f7b
......@@ -265,7 +265,7 @@ func (re *Regexp) add(i instr) instr {
i.setIndex(len(re.inst));
if n >= cap(re.inst) {
ni := make([]instr, n, 2*n);
for i, j := range ni {
for i, j := range re.inst {
ni[i] = j
}
re.inst = ni;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment