bb11443 - fixing possible oob dereference when parsing mbox files

remotes/push_mirror/msola
Mickey Sola 10 years ago
parent bc80d89afc
commit 631baca8d5
  1. 2
      libclamav/mbox.c

@ -724,7 +724,7 @@ parseEmailFile(fmap_t *map, size_t *at, const table_t *rfc821, const char *first
* Handle broken headers, where the next
* line isn't indented by whitespace
*/
if(fullline[fulllinelength - 2] == ';')
if(fullline[strlen(fullline) - 1] == ';')
/* Add arguments to this line */
continue;

Loading…
Cancel
Save