]> git.ipfire.org Git - thirdparty/bind9.git/commit
Handle the errors from sysconf() call in isc_meminfo_totalphys()
authorOndřej Surý <ondrej@sury.org>
Thu, 17 Sep 2020 12:37:24 +0000 (14:37 +0200)
committerOndřej Surý <ondrej@sury.org>
Mon, 21 Sep 2020 08:59:36 +0000 (10:59 +0200)
commit98def35e72eeed3eeb6ecd689ed77e59e444c0c8
treedf9a47813e31736bbb42bc25270cc4ee826553fc
parentf12893d4a7697f4b45568ab3c69e9cd5ed51f687
Handle the errors from sysconf() call in isc_meminfo_totalphys()

isc_meminfo_totalphys() would return invalid memory size when sysconf()
call would fail, because ((size_t)-1 * -1) is very large number.

(cherry picked from commit 79ca724d46918387fba6b2dc484d67390bcbbd56)
lib/isc/unix/meminfo.c