Re: BUG #19843: decode(..., 'base64url') returns an extra byte for "ab="

From: Daniel Gustafsson <daniel(at)yesql(dot)se>
To: shihao zhong <zhong950419(at)gmail(dot)com>
Cc: Atisss hh <125atishprak(at)gmail(dot)com>, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #19843: decode(..., 'base64url') returns an extra byte for "ab="
Date: 2026-11-09 22:26:49
Message-ID: D7237C63-4FDC-42B1-9AB3-137A7F574AD6@yesql.se
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

> On 9 Nov 2026, at 05:57, shihao zhong <zhong950419(at)gmail(dot)com> wrote:
>
> Hi Atish,
>
> Thanks for the report. I think this is already fixed by the patch I
> posted for BUG #19702[1]. With it 'ab=' and 'ab==cd' both raise the same
> error as base64, and its tests include this case.
>
> [1]https://postgr.es/m/19702-9ed4a131fcfadb9d@postgresql.org

Thanks for the pointer, continuing over in that thread.

--
Daniel Gustafsson

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Masahiko Sawada 2026-11-09 22:43:34 Re: BUG #19702: decode() accepts Base64 payload after terminal padding
Previous Message Daniel Gustafsson 2026-11-09 22:26:11 Re: BUG #19702: decode() accepts Base64 payload after terminal padding