Ensure mappings that are too large are not included in the module list

This commit is contained in:
Liam 2023-10-05 19:43:38 -04:00
parent f49c2f1a20
commit d649b2a3fd

View file

@ -549,7 +549,8 @@ class MinidumpWriter {
// Only want to include one mapping per shared lib. // Only want to include one mapping per shared lib.
// Avoid filtering executable mappings. // Avoid filtering executable mappings.
(mapping.offset != 0 && !mapping.exec) || (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; return false;
} }