Re: "Truncated" tuples for tuple hash tables

From: "Bort, Paul" <pbort(at)tmwsystems(dot)com>
To: <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: "Truncated" tuples for tuple hash tables
Date: 2006-06-26 15:28:43
Message-ID: DB106B1B5B8F734B8FF3E155A3A556C202D4FC40@clemail1.tmwsystems.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane said:
>
> To make use of a TruncatedTuple, we'd set up a temporary HeapTupleData
> struct with its t_data field pointing 16 bytes before the start of the
> TruncatedTuple. As long as the code using it never tries to
> access any
> of the missing fields (t_xmin through t_ctid), this would work exactly
> like a normal HeapTuple.
>

This sounds like a security risk. What's the worst thing that could be
in
those 16 bytes, and could that be used to bite (sorry) us?

If those 16 bytes could be user data in another tuple, there might be an
attack there.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2006-06-26 15:29:27 Re: vacuum, performance, and MVCC
Previous Message Hannu Krosing 2006-06-26 15:15:58 Re: vacuum, performance, and MVCC