]> git.ipfire.org Git - thirdparty/libarchive.git/commit
fix: OOB in rar delta filter (#2148)
authorWei-Cheng Pan <legnaleurc@gmail.com>
Sun, 28 Apr 2024 21:50:22 +0000 (06:50 +0900)
committerGitHub <noreply@github.com>
Sun, 28 Apr 2024 21:50:22 +0000 (23:50 +0200)
commita1cb648d52f5b6d3f31184d9b6a7cbca628459b7
treede19ae84771be816f1bd5cdc9650fbb38b82863e
parentb910cb70d4c1b311c9d85cd536a6c91647c43df7
fix: OOB in rar delta filter (#2148)

Ensure that `src` won't move ahead of `dst`, so `src` will not OOB.
Since `dst` won't move in this function, and we are only increasing `src`
position, this check should be enough. It should be safe to early return
because this function does not allocate resources.
libarchive/archive_read_support_format_rar.c