commit | 248efe8410a5c0e67c14db990b200973e5be4ea9 | [log] [tgz] |
---|---|---|
author | Simon Kelley <simon@thekelleys.org.uk> | Tue Aug 20 23:36:49 2019 +0100 |
committer | Simon Kelley <simon@thekelleys.org.uk> | Tue Aug 20 23:36:49 2019 +0100 |
tree | 563fe620d37903a9ccf827fc4907974e617aa1f9 | |
parent | dc6a57ffb8686b3d78971b6adaa283c0d77b3a69 [diff] |
Truncate stupidly large cache sizes. If the cache size is very large, the malloc() call will overflow on 32 bit platforms and dnsmasq will crash. Limit to an order of magnitude less. Thanks to Lili Xu for spotting this.