md4c
md4c copied to clipboard
fix OFF_MAX redefinition and a potential overflow
This addresses first two points of issue #281.
- Since
OFF_MAXis not used in the code at all, I just remove it. -
SZ_MAXis used only at one place in the code, and1024 * 1024is always smaller than it, so it seems redundant. -
16 * sizecould overflow, which makes theMINreturns0which is unwanted. I've changed the code such that if that happens, it also returns1024 * 1024.