]> git.ipfire.org Git - thirdparty/squid.git/commit
Author: Alex Rousskov <rousskov@measurement-factory.com>
authorAmos Jeffries <amosjeffries@squid-cache.org>
Wed, 1 Sep 2010 07:48:26 +0000 (01:48 -0600)
committerAmos Jeffries <amosjeffries@squid-cache.org>
Wed, 1 Sep 2010 07:48:26 +0000 (01:48 -0600)
commit8729adaff0bf57a12d54100e1c93445bcae8dd5a
treebcabdabe2010d37573d15f816d4b23af96fb2e8d
parent0ffc77bf9dd01ec90f7ecc323f22f57e5c71476a
Author: Alex Rousskov <rousskov@measurement-factory.com>
Check for NULL and empty strings before calling str*cmp().

These checks are necessary to ensure consistent comparison results (important
for sorting and searching) and to avoid segfaults on NULL buffers (because
termedBuf() may return NULL instead of the expected "0-terminated buffer").
src/SquidString.h
src/String.cci