mirror of
https://github.com/sudo-project/sudo.git
synced 2025-09-02 23:35:36 +00:00
Avoid using pre or post increment in a parameter to a ctype(3)
function as it might be a macro that causes the increment to happen more than once.
This commit is contained in:
@@ -1992,9 +1992,9 @@ YY_RULE_SETUP
|
|||||||
for (n = 0; isblank((unsigned char)yytext[n]); n++)
|
for (n = 0; isblank((unsigned char)yytext[n]); n++)
|
||||||
continue;
|
continue;
|
||||||
n += sizeof("Defaults") - 1;
|
n += sizeof("Defaults") - 1;
|
||||||
if ((deftype = yytext[n]) != '\0') {
|
if ((deftype = yytext[n++]) != '\0') {
|
||||||
while (isblank((unsigned char)yytext[++n]))
|
while (isblank((unsigned char)yytext[n]))
|
||||||
continue;
|
n++;
|
||||||
}
|
}
|
||||||
BEGIN GOTDEFS;
|
BEGIN GOTDEFS;
|
||||||
switch (deftype) {
|
switch (deftype) {
|
||||||
|
@@ -302,9 +302,9 @@ DEFVAR [a-z_]+
|
|||||||
for (n = 0; isblank((unsigned char)yytext[n]); n++)
|
for (n = 0; isblank((unsigned char)yytext[n]); n++)
|
||||||
continue;
|
continue;
|
||||||
n += sizeof("Defaults") - 1;
|
n += sizeof("Defaults") - 1;
|
||||||
if ((deftype = yytext[n]) != '\0') {
|
if ((deftype = yytext[n++]) != '\0') {
|
||||||
while (isblank((unsigned char)yytext[++n]))
|
while (isblank((unsigned char)yytext[n]))
|
||||||
continue;
|
n++;
|
||||||
}
|
}
|
||||||
BEGIN GOTDEFS;
|
BEGIN GOTDEFS;
|
||||||
switch (deftype) {
|
switch (deftype) {
|
||||||
|
Reference in New Issue
Block a user