1
0
mirror of https://git.tukaani.org/xz.git synced 2025-10-22 17:13:04 +00:00
Lasse Collin 203d482599 xz: Avoid arithmetic on a null pointer
It's undefined behavior. The result wasn't ever used as it occurred
in the last iteration of a loop.

Clang 17 with -fsanitize=address,undefined:

    $ src/xz/xz --block-list=123
    src/xz/args.c:164:12: runtime error: applying non-zero offset 1
        to null pointer

Fixes: 88ccf47205d7f3aa314d358c72ef214f10f68b43
Co-authored-by: Sam James <sam@gentoo.org>
(cherry picked from commit 77c8f60547decefca8f2d0c905d9c708c38ee8ff)
2024-05-22 00:12:07 +03:00
..
2024-05-22 00:12:07 +03:00
2023-08-01 18:44:02 +03:00
2010-01-24 23:50:54 +02:00
2024-05-22 00:07:08 +03:00
2024-05-22 00:07:08 +03:00
2024-05-22 00:07:08 +03:00
2023-12-22 20:02:06 +08:00
2023-12-22 20:02:06 +08:00