ENG-4151 Fix buffer sanity checks.
ENG-4151 Fix buffer sanity checks.

deerwalk/voltdb,creative-quant/voltdb,wolffcm/voltdb,simonzhangsm/voltdb,migue/voltdb,ingted/voltdb,VoltDB/voltdb,deerwalk/voltdb,paulmartel/voltdb,VoltDB/voltdb,ingted/voltdb,zuowang/voltdb,creative-quant/voltdb,paulmartel/voltdb,ingted/voltdb,simonzhangsm/voltdb,creative-quant/voltdb,kumarrus/voltdb,kobronson/cs-voltdb,paulmartel/voltdb,ingted/voltdb,kobronson/cs-voltdb,creative-quant/voltdb,kumarrus/voltdb,flybird119/voltdb,zuowang/voltdb,zuowang/voltdb,deerwalk/voltdb,migue/voltdb,deerwalk/voltdb,flybird119/voltdb,kumarrus/voltdb,migue/voltdb,kumarrus/voltdb,simonzhangsm/voltdb,paulmartel/voltdb,simonzhangsm/voltdb,creative-quant/voltdb,paulmartel/voltdb,VoltDB/voltdb,paulmartel/voltdb,deerwalk/voltdb,simonzhangsm/voltdb,paulmartel/voltdb,simonzhangsm/voltdb,kobronson/cs-voltdb,creative-quant/voltdb,deerwalk/voltdb,kumarrus/voltdb,VoltDB/voltdb,creative-quant/voltdb,creative-quant/voltdb,flybird119/voltdb,paulmartel/voltdb,flybird119/voltdb,migue/voltdb,migue/voltdb,kobronson/cs-voltdb,kobronson/cs-voltdb,kumarrus/voltdb,deerwalk/voltdb,VoltDB/voltdb,VoltDB/voltdb,kobronson/cs-voltdb,flybird119/voltdb,zuowang/voltdb,deerwalk/voltdb,ingted/voltdb,wolffcm/voltdb,kumarrus/voltdb,kumarrus/voltdb,wolffcm/voltdb,wolffcm/voltdb,migue/voltdb,flybird119/voltdb,ingted/voltdb,zuowang/voltdb,kobronson/cs-voltdb,kobronson/cs-voltdb,simonzhangsm/voltdb,wolffcm/voltdb,ingted/voltdb,wolffcm/voltdb,migue/voltdb,zuowang/voltdb,flybird119/voltdb,zuowang/voltdb,flybird119/voltdb,zuowang/voltdb,wolffcm/voltdb,migue/voltdb,wolffcm/voltdb,VoltDB/voltdb,simonzhangsm/voltdb,ingted/voltdb