]> Savannah Git Hosting - gnulib.git/commit
quotearg: Avoid undefined behaviour.
authorBruno Haible <bruno@clisp.org>
Mon, 10 Mar 2025 16:28:33 +0000 (17:28 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 10 Mar 2025 16:28:33 +0000 (17:28 +0100)
commit78c7fe8a85dda15f145511f9acf8580e795e40bc
tree0156bfd4be29db0aa89b6c45ccc3c11ca7038d04
parent69cbf3e2b3f93b2c42d0c07d29fa756914711cf8
quotearg: Avoid undefined behaviour.

Reported by Kirill Furman <kfurman@astralinux.ru> in
<https://lists.gnu.org/archive/html/bug-gnulib/2025-03/msg00037.html>.

* lib/quotearg.c (set_char_quoting): Use 'unsigned int', not 'int', for
doing bit mask operations.
ChangeLog
lib/quotearg.c