Commit 14ac6f8c authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

Fixed 16bit int overflow

parent 656a4b6e
......@@ -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));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment