Neo23x0 / Raccine

A Simple Ransomware Vaccine
The Unlicense
942 stars 123 forks source link

Check for allocation success before using buffer. #10

Closed JohnLaTwC closed 3 years ago

JohnLaTwC commented 3 years ago

https://github.com/Neo23x0/Raccine/blob/b8ea99ad4b4e393b3cab2639b33755a26d3a8868/raccine.cpp#L58

Think you're missing a check for allocation success before using the buffer. if (!pTIL) return 0

Neo23x0 commented 3 years ago

Thanks, fixed in https://github.com/Neo23x0/Raccine/commit/137da0e88d76bcf36f65fb5d5da40ba30b8bfcf7