This could lead to the wrong values being passed and computing invalid sizes which would then lead to very unhappy code. Test included.