Adding a check on "remaining length" decoding inputs. The maximum number
of bytes should be 4. More bytes means corrupted input.