mirror of https://github.com/Cisco-Talos/clamav
- instead of the costly algorithm: try to match with \n and retry a match with \r if failed - try matching without \n\r, and lookback one char and test for \n\r, move on to next match if failed - also assume objects are sequential, and look for indirect objects ahead, instead of looking from the beginning each time, if optimization fails, search for the indirect object from the beginning till current pos This reduces scan time of sample from bb #1217 to 4 seconds from 8 minutes! git-svn: trunk@42260.95
parent
be3fa18daf
commit
7bc225961a
Loading…
Reference in new issue