mirror of
https://github.com/moparisthebest/spdylay
synced 2024-12-22 15:48:53 -05:00
Fixed 16bit int overflow
This commit is contained in:
parent
656a4b6e72
commit
14ac6f8ca8
@ -87,7 +87,7 @@ void test_spdylay_frame_count_unpack_nv_space()
|
||||
spdylay_put_uint16be(out+2, temp+1);
|
||||
CU_ASSERT(SPDYLAY_ERR_INVALID_ARGUMENT ==
|
||||
spdylay_frame_count_unpack_nv_space(&nvlen, &buflen, out, inlen));
|
||||
spdylay_put_uint16be(out+2, 65536);
|
||||
spdylay_put_uint16be(out+2, 65535);
|
||||
CU_ASSERT(SPDYLAY_ERR_INVALID_ARGUMENT ==
|
||||
spdylay_frame_count_unpack_nv_space(&nvlen, &buflen, out, inlen));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user