Re: Error in calculating length of encoded base64 string

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: o(dot)tselebrovskiy(at)postgrespro(dot)ru
Cc: pgsql-hackers(at)postgresql(dot)org, Sergey Shinderuk <s(dot)shinderuk(at)postgrespro(dot)ru>
Subject: Re: Error in calculating length of encoded base64 string
Date: 2023-06-08 14:35:26
Message-ID: 12548.1686234926@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

o(dot)tselebrovskiy(at)postgrespro(dot)ru writes:
> While working on an extension I've found an error in how length of
> encoded base64 string is calulated;

Yeah, I think you're right. It's not of huge significance, because
it just overestimates by 1 or 2 bytes, but we might as well get
it right. Thanks for the report and patch!

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dave Cramer 2023-06-08 14:55:02 Re: Named Prepared statement problems and possible solutions
Previous Message Greg Stark 2023-06-08 14:33:26 Re: Let's make PostgreSQL multi-threaded