]> git.ipfire.org Git - thirdparty/squid.git/commit
libacl: Fix various issues in ASN and random ACL types
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 2 Jan 2013 00:42:43 +0000 (17:42 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 2 Jan 2013 00:42:43 +0000 (17:42 -0700)
commit726904adbd18bdca61300ac1ad377f10c56150b1
treec28a4cded7beac77c6561ac5b927a4d0407553a5
parente4877287e085d8328e1416c96f403b26411c2e77
libacl: Fix various issues in ASN and random ACL types

* replace malloc+memset pattern with calloc in ASN ACL.
  Highlighted by Coverity Scan, issue 434128.

* Log the even where ACL random is configured with no parameters.

* Improve detecton of negative values in random ACL.
  Detected by Coverity Scan, issue 740486.

NOTE: coverity issues which brought these to view require additional
fixes.
src/acl/Asn.cc
src/acl/Random.cc