Re: [PATCH] Fix small overread during SASLprep - Mailing list pgsql-hackers

From Jacob Champion
Subject Re: [PATCH] Fix small overread during SASLprep
Date
Msg-id CAOYmi+=rtEBaCi3LaNzOR4gaM+TuHGjYBBF_1vr5uLjJSEoKdQ@mail.gmail.com
Whole thread Raw
In response to Re: [PATCH] Fix small overread during SASLprep  (Daniel Gustafsson <daniel@yesql.se>)
Responses Re: [PATCH] Fix small overread during SASLprep
List pgsql-hackers
On Mon, Sep 9, 2024 at 11:30 AM Daniel Gustafsson <daniel@yesql.se> wrote:
> Just to make sure I understand, this is for guarding against overreads in
> validation of strings containing torn MB characters?

Right. Our SASLprep code doesn't require/enforce UTF8-encoded inputs.

> Assuming I didn't
> misunderstand you this patch seems correct to me.

Thanks for the review!

--Jacob



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pgstattuple: fix free space calculation
Next
From: Bharath Rupireddy
Date:
Subject: Re: Introduce XID age and inactive timeout based replication slot invalidation