Re: Garbage pad bytes within datums are bad news

From: Teodor Sigaev <teodor(at)sigaev(dot)ru>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: Garbage pad bytes within datums are bad news
Date: 2008-04-04 20:23:17
Message-ID: 47F68E35.4000100@sigaev.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


> The alternative seems to be to forbid uninitialized pad bytes within
> Datums. That's not very pleasant to contemplate either, since it'll
> forever be vulnerable to sins of omission.

Hmm, we can add to palloc random filling of allocated memory with
--enable-cassert. It'll allow to catch such bugs in most cases.

--
Teodor Sigaev E-mail: teodor(at)sigaev(dot)ru
WWW: http://www.sigaev.ru/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Dunstan 2008-04-04 20:26:07 Re: modules
Previous Message Alvaro Herrera 2008-04-04 20:20:11 Re: Patch queue -> wiki