]> git.ipfire.org Git - thirdparty/libarchive.git/commit
archive_match: Turn counter into flag (#2154)
authorTobias Stoeckmann <stoeckmann@users.noreply.github.com>
Mon, 29 Apr 2024 20:05:44 +0000 (22:05 +0200)
committerGitHub <noreply@github.com>
Mon, 29 Apr 2024 20:05:44 +0000 (22:05 +0200)
commit287e05d539fcb9bb2aab22844c161070199b6698
tree976c312ff350806c89ad02047c5358f545596a10
parent0ce1b4c382f96f0591ea0496af49d2f8c8f8edb8
archive_match: Turn counter into flag (#2154)

When working with matches, the code does not care about the actual
amount of times when it matched, but just if it matched so far at least
once or never.

Turning the counter into a boolean flag has the advantage that even
insanely huge archives will never lead to integer overflow here.
libarchive/archive_match.c