From 14ac6f8ca840b869d02f26884ea705dfd9c864a8 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 8 Feb 2012 21:50:16 +0900 Subject: [PATCH] Fixed 16bit int overflow --- tests/spdylay_frame_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/spdylay_frame_test.c b/tests/spdylay_frame_test.c index 897ce60..9f32268 100644 --- a/tests/spdylay_frame_test.c +++ b/tests/spdylay_frame_test.c @@ -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)); }