]> git.ipfire.org Git - thirdparty/libarchive.git/commit
archive_match: Use correct data type for iterator
authorTobias Stoeckmann <tobias@stoeckmann.org>
Sat, 24 May 2025 10:29:36 +0000 (12:29 +0200)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Sat, 24 May 2025 10:35:32 +0000 (12:35 +0200)
commitbef52da6221b7f272fa4ba2294a8bf5f827543c0
tree17fb47906a8e27ef3aa716ed28a7a38dfceab7b1
parent8b763d872c62378c4bfe536f7f7d0313f680d579
archive_match: Use correct data type for iterator

Iterating over a size_t with unsigned could lead to an endless loop
while adding uid/gid to a list which already counts 4 billion
entries.

I doubt that this can ever happen, given that the routines become
very slow with insertions, but better be safe than sorry.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
libarchive/archive_match.c