]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
libe2p: avoid potential integer overflow in interate_on_dir()
authorTheodore Ts'o <tytso@mit.edu>
Mon, 26 May 2025 14:09:59 +0000 (10:09 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 26 May 2025 14:09:59 +0000 (10:09 -0400)
commit3a4bbc5cd5baff73d85306f6c4f18cf36d85636d
treecf3ecc466c836f3069d93954cf6c63a16de9ce75
parentdd0c4efa173203484f0cd612f97eb19181240a33
libe2p: avoid potential integer overflow in interate_on_dir()

Overflows won't happen if the OS's implementation of pathconf()
returns reasonable values, but we can make it a bit more hardened
against maliciou implementations.

Addresses-Coverity-Bug: 1633758
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/e2p/iod.c