]> git.ipfire.org Git - thirdparty/gettext.git/commit
Fix undefined behaviour according to ISO C 23 § 6.5.6.(9).
authorBruno Haible <bruno@clisp.org>
Mon, 10 Jun 2024 15:39:28 +0000 (17:39 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 10 Jun 2024 15:39:28 +0000 (17:39 +0200)
commit3cf8c3276a088311b28100febe51a90f5e3fe68c
tree92505177e19191b35452b193ba882b196f821196
parente45d9d3bf8fc53e73997f440d4f8074d775969f9
Fix undefined behaviour according to ISO C 23 § 6.5.6.(9).

Found by clang's undefined-behaviour sanitizer.

* gettext-tools/src/msgl-fsearch.c (mult_index_list_accumulate): If len1 == 0,
skip two loops.
gettext-tools/src/msgl-fsearch.c