From 23df051030add5f755633fc7a88ea66404f26adf Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sat, 18 May 2019 18:43:08 +0100 Subject: lscpu: fix floating point exception As the title tells this change indeed fixes floating point exception, but post processing as value overwrite feels a wrong. Possibly something in input is making cpu set count to go wrong, but I could not get my head around what could it be. Anyway avoiding division by zero seems better than crashing so lets do this atleast for now. Caused-by: e5f721132ec8b8c933a396d8dcb3efcb67854f13 Addresses: https://github.com/karelzak/util-linux/issues/788 Reported-by: Lars Wendler Signed-off-by: Sami Kerola --- tests/ts/lscpu/dumps/vmware_fpe.tar.gz | Bin 0 -> 59743 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 tests/ts/lscpu/dumps/vmware_fpe.tar.gz (limited to 'tests/ts') diff --git a/tests/ts/lscpu/dumps/vmware_fpe.tar.gz b/tests/ts/lscpu/dumps/vmware_fpe.tar.gz new file mode 100644 index 000000000..1fc6aed4a Binary files /dev/null and b/tests/ts/lscpu/dumps/vmware_fpe.tar.gz differ -- cgit v1.2.3-55-g7522