private boolean checkOnDiskSizeWithHeader(int value) {
      if (value < 0) {
        if (LOG.isTraceEnabled()) {
          LOG.trace(
            "onDiskSizeWithHeader={}; value represents a size, so it should never be negative.",
            value);
        }
        return false;
      }
      if (value - hdrSize < 0) {
        if (LOG.isTraceEnabled()) {
          LOG.trace("onDiskSizeWithHeader={}, hdrSize={}; don't accept a value that is negative"
            + " after the header size is excluded.", value, hdrSize);
        }
        return false;
      }
      return true;
    }
Check that {@code value} read from a block header seems reasonable, within a large margin of
error.
@return {@code true} if the value is safe to proceed, {@code false} otherwise.
hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileBlock.java