VirusTotal / yara

The pattern matching swiss knife
https://virustotal.github.io/yara/
BSD 3-Clause "New" or "Revised" License
8.26k stars 1.44k forks source link

System.AccessViolationException #1877

Closed ApoIIy0n closed 1 year ago

ApoIIy0n commented 1 year ago

Describe the bug The moment I'm multithreading my application written in C#, every now and then I get an System.AccessViolationException: 'Attempted to read or write protected memory. Exception

To Reproduce use multithreading

Expected behavior get the results instead

Screenshots image

Please complete the following information:

Additional context every file, stream, yararule etc.etc. is validated untill the point of calling yr_rules_scan_mem to make sure that hopefully I didn't mess up somewhere..