Fix buffer overflow in modp_base64_decode

After padding is stripped, we need to return early if the stripped
string is empty in kNoPaddingValidation mode.

Fixed: 1393097
Change-Id: Ie53a16fe3cf0922a9e4b00d8b1f83a4e21a33738
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4052305
Reviewed-by: Kentaro Hara <haraken@chromium.org>
Reviewed-by: Peter Kasting <pkasting@chromium.org>
Commit-Queue: Charlie Harrison <csharrison@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1076411}
NOKEYCHECK=True
GitOrigin-RevId: d7c569af7de8fc9c0ece7295efd5b178d594d37e
1 file changed