From: Todd C. Miller Date: Wed, 18 Feb 1998 21:23:57 +0000 (+0000) Subject: fix off by one error in push macro X-Git-Tag: SUDO_1_5_6~85 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=14292f47ccd65e275c63ac52154cddc8471fab0a;p=sudo fix off by one error in push macro --- diff --git a/parse.yacc b/parse.yacc index ff2d0fa0b..53507d78f 100644 --- a/parse.yacc +++ b/parse.yacc @@ -90,7 +90,7 @@ int top = 0, stacksize = 0; #define push \ { \ - if (top > stacksize) { \ + if (top >= stacksize) { \ while ((stacksize += STACKINCREMENT) < top); \ match = (struct matchstack *) realloc(match, sizeof(struct matchstack) * stacksize); \ if (match == NULL) { \