]> 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:55:00 +0000 (10:55 +0200)
commit79ca724d46918387fba6b2dc484d67390bcbbd56
treeea5ed9eb1c8aa3d7038df825f169682efd611cf7
parent08dd2838a6a9f24860dabdeeab47f8b4fefd63a8
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.
lib/isc/unix/meminfo.c