Open magnumripper opened 7 years ago
Now bumped. I didn't add an error yet though, not quite sure where to put it? Should be somewhere here:
$ git grep -C3 RULE_RANGES_MAX rpp.c
rpp.c- if (!(c = *++input)) break;
rpp.c- c1 = ctx->count ? '0' : '1';
rpp.c- c2 = (ctx->count <= 9) ? '0' + ctx->count : '9';
rpp.c: if (c >= c1 && c <= c2 && ctx->refs_count < RULE_RANGES_MAX) {
rpp.c- struct rpp_ref *ref = &ctx->refs[ctx->refs_count++];
rpp.c- ref->pos = (char *)output;
rpp.c- ref->range = (c == '0') ? ctx->count - 1 : c - '1';
rpp.c- }
rpp.c- input++;
rpp.c: if (ctx->count < RULE_RANGES_MAX)
rpp.c- switch (c) {
rpp.c- case 'p':
rpp.c- if ((c2 = *input) == '[' || c2 == '\\') {
--
rpp.c- break;
rpp.c-
rpp.c- case '[':
rpp.c: if (ctx->count >= RULE_RANGES_MAX) {
rpp.c- *output++ = *input++;
rpp.c- break;
rpp.c- }
http://www.openwall.com/lists/john-users/2017/08/18/2