]> git.ipfire.org Git - thirdparty/systemd.git/commit
pe-binary: fix array overrun
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 18 Feb 2025 18:09:38 +0000 (03:09 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 3 Mar 2025 20:18:15 +0000 (05:18 +0900)
commit6529ab0b066c93a6b8a8bf24b999d67e67a261f5
tree232f1693d6f8249d1f61173637d1495ab1e14604
parent2bf5d698d641afb1cec0b9ffb397722622afa8ea
pe-binary: fix array overrun

This is a kind of paranoia, as memeqzero() does not read anyting if
length is zero. But, strictly speaking C language does not allow such,
and Coverity warn about that.

Fixes CID#1561177.
src/shared/pe-binary.c