chunk: Correctly parse Base64 text where four = follow in a row
authorTobias Brunner <tobias@strongswan.org>
Thu, 4 May 2017 14:16:33 +0000 (16:16 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 23 May 2017 16:29:12 +0000 (18:29 +0200)
commitaed77b096191f395e347c4aa00cbb7797c03d0f6
tree5cee5c43d0dbaf159e91b1fdc63a7313eb04f29b
parentf5aef3a02028fa986e80187872656b52b3249a6a
chunk: Correctly parse Base64 text where four = follow in a row

That's not correct Base64 but invalid data could trigger this. Since
outlen would get reduced four times, but is only ever increased three
times per iteration, this could result in an integer underflow and then
a potential buffer overflow.
src/libstrongswan/utils/chunk.c