Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
bb11915 - Fix for whitelisting bytecode signatures. Patch by Georgy S…
…alnikov.
  • Loading branch information
steve-morgan committed Oct 13, 2017
1 parent 7dbfe24 commit b2f5986
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions NEWS
Expand Up @@ -48,6 +48,7 @@ Marc Deslauriers
Mark Allan
Andreas Schulze
Jonas Zaddach
Georgy Salnikov

--
The ClamAV team (http://www.clamav.net/about.html#credits)
8 changes: 7 additions & 1 deletion libclamav/readdb.c
Expand Up @@ -772,7 +772,13 @@ static char *cli_signorm(const char *signame)

nsz = strlen(signame);

if (nsz > 11) {
if (nsz > 3 && signame[nsz-1] == '}') {
char *pt = strstr(signame, ".{");
if (pt) /* strip the ".{ }" clause at the end of signame */
nsz = pt - signame;
else
return NULL;
} else if (nsz > 11) {
if (!strncmp(signame+nsz-11, ".UNOFFICIAL", 11))
nsz -= 11;
else
Expand Down

0 comments on commit b2f5986

Please sign in to comment.