]> git.ipfire.org Git - thirdparty/libarchive.git/commit
fix(rar): add boundary checks to rgb filter (#2210)
authorWei-Cheng Pan <legnaleurc@gmail.com>
Tue, 28 May 2024 09:40:32 +0000 (18:40 +0900)
committerGitHub <noreply@github.com>
Tue, 28 May 2024 09:40:32 +0000 (11:40 +0200)
commit3438d7387cf984370176291f69fd586be184f3fe
tree7a0ce254e91db562390714f10fe7b6f273134d9b
parent8fc0569bab522212fd593210e5a88e07918cbd5e
fix(rar): add boundary checks to rgb filter (#2210)

`blocklength` should be bigger than `3` (channel count)
`byteoffset` should not be bigger than `2` (does not make sense as per the
last loop)
`src` should not overlap with `dst`.

There is no allocation in this function so it should be safe to return
early.

Security: GHSA-9qqv-q4qw-mf8m
libarchive/archive_read_support_format_rar.c