Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libclamav/regex/engine.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
const char *beginp; /* start of string -- virtual NUL precedes */
const char *endp; /* end of string -- virtual NUL here */
const char *coldp; /* can be no match starting before here */
const char **lastpos; /* [nplus+1] */
char **lastpos; /* [nplus+1] */
STATEVARS;
states st; /* current states */
states fresh; /* states for a fresh start */
Expand Down Expand Up @@ -600,14 +600,14 @@
case OPLUS_:
assert(m->lastpos != NULL);
assert(lev+1 <= m->g->nplus);
m->lastpos[lev+1] = sp;

Check warning on line 603 in libclamav/regex/engine.c

View workflow job for this annotation

GitHub Actions / build-windows

'=': different 'const' qualifiers

Check warning on line 603 in libclamav/regex/engine.c

View workflow job for this annotation

GitHub Actions / build-windows

'=': different 'const' qualifiers
return(backref(m, sp, stop, ss+1, stopst, lev+1, rec));
break;
case O_PLUS:
if (sp == m->lastpos[lev]) /* last pass matched null */
return(backref(m, sp, stop, ss+1, stopst, lev-1, rec));
/* try another pass */
m->lastpos[lev] = sp;

Check warning on line 610 in libclamav/regex/engine.c

View workflow job for this annotation

GitHub Actions / build-windows

'=': different 'const' qualifiers

Check warning on line 610 in libclamav/regex/engine.c

View workflow job for this annotation

GitHub Actions / build-windows

'=': different 'const' qualifiers
dp = backref(m, sp, stop, ss-OPND(s)+1, stopst, lev, rec);
if (dp == NULL)
return(backref(m, sp, stop, ss+1, stopst, lev-1, rec));
Expand Down
Loading