Limit special diagnostics size region to 4KiB. (#91953)
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Thu, 14 Sep 2023 00:09:15 +0000 (17:09 -0700)
committerGitHub <noreply@github.com>
Thu, 14 Sep 2023 00:09:15 +0000 (17:09 -0700)
commit834593b26a79e9770b9b51c6f71811d2fd7a924f
treea87602b7359923ba6fb104de7566141f63eb94e2
parent8181f03197e168af3cb1ad069025933783636f96
Limit special diagnostics size region to 4KiB. (#91953)

This fixes out-of-bounds access when trying to write the
diagnostics info on platforms where the PAGE_SIZE is larger
than the DumpWriter's 16KiB m_tempBuffer.

Co-authored-by: Tom Deseyn <tom.deseyn@gmail.com>
Co-authored-by: Carlos Sánchez López <1175054+carlossanlop@users.noreply.github.com>
src/coreclr/debug/createdump/crashinfo.cpp
src/coreclr/debug/createdump/specialdiaginfo.h