It goes "length = width * width * pixel-size". Should be "width * height * pixel-size".
Comments: Resolved with changeset 37738: Fixed incorrect check in GetExpectedLength and modified unit test to test this better.
Comments: Resolved with changeset 37738: Fixed incorrect check in GetExpectedLength and modified unit test to test this better.