]> git.ipfire.org Git - thirdparty/squid.git/commit
squidpurge: polish debug -d option handling
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 20 Jan 2013 02:01:16 +0000 (19:01 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 20 Jan 2013 02:01:16 +0000 (19:01 -0700)
commit052aecef0b2b5b67207cecc3410cca1231f30a90
treede4671fe1fa14f8ba51f9d1d362a542227cef354
parent10dbb3cd02e4532a916e0dccf77d4fc80757f8ed
squidpurge: polish debug -d option handling

Parsing of the -d option parameter was severaly broken with an inverted
NULL check resulting in segfaul whenever a level was supplied.

Also, add validation that out-of-range values cannot be supplied and
document in the help that this is a mask value, not just a number.

 Detected by Coverity Scan. Issue 740378.
tools/purge/purge.cc