Browse code

bb11443 - fixing possible oob dereference when parsing mbox files

Mickey Sola authored on 2015/12/18 02:46:38
Showing 1 changed files
... ...
@@ -724,7 +724,7 @@ parseEmailFile(fmap_t *map, size_t *at, const table_t *rfc821, const char *first
724 724
 				 * Handle broken headers, where the next
725 725
 				 * line isn't indented by whitespace
726 726
 				 */
727
-				if(fullline[fulllinelength - 2] == ';')
727
+				if(fullline[strlen(fullline) - 1] == ';')
728 728
 					/* Add arguments to this line */
729 729
 					continue;
730 730