Replace logical incorrect check with "fool proofing" check.
Current check is logical incorrect because header length describes
length of data section withOUT index section itself
and we cannot statically check it at the point where this check is at the moment.
Replace logical incorrect check with "fool proofing" check.
Current check is logical incorrect because header length describes length of data section withOUT index section itself and we cannot statically check it at the point where this check is at the moment.