Re: Out-of-bounds access (ARRAY_VS_SINGLETON) (src/backend/access/nbtree/nbtdedup.c) - Mailing list pgsql-hackers

From Peter Geoghegan
Subject Re: Out-of-bounds access (ARRAY_VS_SINGLETON) (src/backend/access/nbtree/nbtdedup.c)
Date
Msg-id CAH2-Wzk173yY2Xz1iV09Bzx4n4-BGATrd2M1B9EydNDNY_21JQ@mail.gmail.com
Whole thread Raw
In response to Out-of-bounds access (ARRAY_VS_SINGLETON) (src/backend/access/nbtree/nbtdedup.c)  (Ranier Vilela <ranier.vf@gmail.com>)
List pgsql-hackers
On Tue, Aug 25, 2020 at 10:15 AM Ranier Vilela <ranier.vf@gmail.com> wrote:
> If variable htids is accessed like array, but is a simple pointer, can be
> "This might corrupt or misinterpret adjacent memory locations."

This exact Coverity complaint has already been discussed, and marked
as a false positive on the community's Coverity installation.

-- 
Peter Geoghegan



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: LWLockAcquire and LockBuffer mode argument
Next
From: Andres Freund
Date:
Subject: Re: LWLockAcquire and LockBuffer mode argument