1
0
mirror of https://github.com/moparisthebest/spdylay synced 2024-11-12 04:25:09 -05:00

Fixed 16bit int overflow

This commit is contained in:
Tatsuhiro Tsujikawa 2012-02-08 21:50:16 +09:00
parent 656a4b6e72
commit 14ac6f8ca8

View File

@ -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));
}