Testing for Incorrect Calculation of Buffer Size