residualvm/residualvm — pull request #540 by YakBizzarro (2012-02-21 14:01:00+00:00)
Title: GRIM: Prevent collisions in patchr

Patchr uses only the first 5000 bytes to compute the md5sum of a file. This leads to collisions between different versions of the same file, for example the versions 1.00 and 1.01 of bd.lua have the same md5, since the firsts 18727 bytes are the same.
This commit adds a new check about the dimension of the file, like the game detector does.