From d649b2a3fdd57bed8e65a78c52cef99cd426c7ff Mon Sep 17 00:00:00 2001 From: Liam Date: Thu, 5 Oct 2023 19:43:38 -0400 Subject: [PATCH] Ensure mappings that are too large are not included in the module list --- src/client/linux/minidump_writer/minidump_writer.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/linux/minidump_writer/minidump_writer.cc b/src/client/linux/minidump_writer/minidump_writer.cc index a95dd254..27e10a4b 100644 --- a/src/client/linux/minidump_writer/minidump_writer.cc +++ b/src/client/linux/minidump_writer/minidump_writer.cc @@ -549,7 +549,8 @@ class MinidumpWriter { // Only want to include one mapping per shared lib. // Avoid filtering executable mappings. (mapping.offset != 0 && !mapping.exec) || - mapping.size < 4096) { // too small to get a signature for. + mapping.size < 4096 || // too small to get a signature for. + mapping.size > 0xFFFFFFFFULL) { // too large to include in the dump. return false; }