]> git.ipfire.org Git - thirdparty/systemd.git/commit
coredump: fix various invalid memory access 28779/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 10 Aug 2023 19:48:01 +0000 (04:48 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 10 Aug 2023 21:08:38 +0000 (06:08 +0900)
commit3a19fe4637b5c5ed92a57d8038c6f895538e12d9
tree08e007b69a3f385c7e9566dd5e4132a772477197
parent3746131aac4798cacf67b60cfc4e2e1c80ec4efb
coredump: fix various invalid memory access

Previously, we did not check error from iovw_put(). If it fails, the
target iovw may have no iov or partial iovs from the journal importar.
So, the finalization may cause underflow and may access and free invalid
memory.

Follow-up for 946dc7c635f050129896d1515c08a81504af2421.
src/coredump/coredump.c