]> git.ipfire.org Git - thirdparty/squid.git/commit
Cleanup: fix assertion in Store unit tests
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 29 Aug 2015 18:51:19 +0000 (11:51 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 29 Aug 2015 18:51:19 +0000 (11:51 -0700)
commitfd89e819c95f91ac13cc2a098072731f9313f893
treeee2217d2e68b6a45d6dae38d810e8e300ed81819
parent346d57dfbae69edba43dd350d71447f0d02ff9d9
Cleanup: fix assertion in Store unit tests

The old Squid String implementation cannot handle appending nullptr or
negative lengths. So if the test code using CapturingStoreEntry ever
tries to append such it will crash instead of working like a StoreEntry
should.
src/tests/CapturingStoreEntry.h