regexp: Avoid dangling start/stop pointers in atom
States could be eliminated later, so set start/stop pointers to NULL
after they're used in xmlFAGenerateTransitions.
diff --git a/xmlregexp.c b/xmlregexp.c
index 2a7f762..f706a17 100644
--- a/xmlregexp.c
+++ b/xmlregexp.c
@@ -1094,8 +1094,6 @@
fprintf(output, "%d entries\n", atom->nbRanges);
for (i = 0; i < atom->nbRanges;i++)
xmlRegPrintRange(output, atom->ranges[i]);
- } else if (atom->type == XML_REGEXP_SUBREG) {
- fprintf(output, "start %d end %d\n", atom->start->no, atom->stop->no);
} else {
fprintf(output, "\n");
}
@@ -1615,6 +1613,9 @@
default:
break;
}
+ atom->start = NULL;
+ atom->start0 = NULL;
+ atom->stop = NULL;
if (xmlRegAtomPush(ctxt, atom) < 0)
return(-1);
return(0);