ossp-pkg/var/var.c 1.83 -> 1.84
--- var.c 2002/03/06 11:45:03 1.83
+++ var.c 2002/03/07 09:08:11 1.84
@@ -757,7 +757,7 @@
}
i = (*p - '0');
p++;
- if (pmatch[i].rm_so == -1) {
+ if (pmatch[i].rm_so == -1 || pmatch[i].rm_eo == -1) {
tokenbuf_free(expanded);
return VAR_ERR_SUBMATCH_OUT_OF_RANGE;
}
|
|