]> Savannah Git Hosting - gnulib.git/commit
base64: Avoid false positive warning from Coverity.
authorBruno Haible <bruno@clisp.org>
Fri, 10 May 2019 14:08:38 +0000 (16:08 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 10 May 2019 14:09:25 +0000 (16:09 +0200)
commit0003b01876cb929ab10ac4fe409db20d6e4c1f0e
tree9a33565af48b096af81e3133d566fe7db0c999f7
parent46133252579ffd78438ebaa2761ec19ecd1e1297
base64: Avoid false positive warning from Coverity.

Reported by Kamil Dudka <kdudka@redhat.com>.

Idea by Paul Eggert.

* lib/base64.c (base64_encode_fast, base64_encode): Add a no-op
'& 0x3f' to the array index expressions. This convinces Coverity that
there is no out-of-bounds array reference, regardless of the input.
ChangeLog
lib/base64.c