]> granicus.if.org Git - sudo/commit
When decoding base64, avoid using '=' in the decoded temporary array
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 1 Sep 2015 16:24:59 +0000 (10:24 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 1 Sep 2015 16:24:59 +0000 (10:24 -0600)
commitbfb1cead60c8992e8196b3f5e896531be8a175e3
tree423e93ccce5946b7b7940cedecd36630315f70ff
parent333faa20e21bf66a7b7a28a450a73f0eca3cf4ee
When decoding base64, avoid using '=' in the decoded temporary array
as a sentinel as it can legitimately be present.  Instead, just use
the count of bytes stored in the temp array to determine which bytes
to fold into the destination.
plugins/sudoers/base64.c
plugins/sudoers/match.c
plugins/sudoers/regress/parser/check_base64.c