------------------------------------------------------------ revno: 12434 revision-id: squid3@treenet.co.nz-20130102002010-izh8ycomj5ifps3r parent: squid3@treenet.co.nz-20130101052845-elf1zhypbriwb6pf author: Francesco Chemolli committer: Amos Jeffries branch nick: 3.3 timestamp: Tue 2013-01-01 17:20:10 -0700 message: Fix wrong string length in testHttpReply. Detected by Coverity Scan. Issue 740413 ------------------------------------------------------------ # Bazaar merge directive format 2 (Bazaar 0.90) # revision_id: squid3@treenet.co.nz-20130102002010-izh8ycomj5ifps3r # target_branch: http://bzr.squid-cache.org/bzr/squid3/3.3 # testament_sha1: de9c33bbff34f181466884793ef77ecff0b5b224 # timestamp: 2013-01-02 00:53:22 +0000 # source_branch: http://bzr.squid-cache.org/bzr/squid3/3.3 # base_revision_id: squid3@treenet.co.nz-20130101052845-\ # elf1zhypbriwb6pf # # Begin patch === modified file 'src/tests/testHttpReply.cc' --- src/tests/testHttpReply.cc 2012-09-04 09:10:20 +0000 +++ src/tests/testHttpReply.cc 2013-01-02 00:20:10 +0000 @@ -88,7 +88,7 @@ #endif // valid ICY protocol status line - input.append("ICY 200 Okay\n\n", 18); + input.append("ICY 200 Okay\n\n", 14); hdr_len = headersEnd(input.content(),input.contentSize()); CPPUNIT_ASSERT( engine.sanityCheckStartLine(&input, hdr_len, &error) ); CPPUNIT_ASSERT_EQUAL(error, HTTP_STATUS_NONE);