Re: Buffer overflow in SerializeLibraryState() found by Address Sanitizer - Mailing list pgsql-hackers

From David Geier
Subject Re: Buffer overflow in SerializeLibraryState() found by Address Sanitizer
Date
Msg-id 3f032ae2-d6b3-482b-bda4-26a9f674dea9@gmail.com
Whole thread Raw
List pgsql-hackers
But just seeing now that size in EstimateLibraryState() is initialized 
to 1. So that total size should actually be fine. Weird that the patch 
makes the sanitizer error disappear.

On 6/10/2025 4:21 PM, David Geier wrote:
> The loop advances the pointer via start_address += len.
>
-- 
David Geier
(ServiceNow)




pgsql-hackers by date:

Previous
From: Konstantin Knizhnik
Date:
Subject: Re: Non-reproducible AIO failure
Next
From: Peter Eisentraut
Date:
Subject: Re: Remaining dependency on setlocale()