Re: Fix memcmp() with different sizes.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Kurt Roeckx <Q(at)ping(dot)be>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: Fix memcmp() with different sizes.
Date: 2004-02-03 17:09:10
Message-ID: 19532.1075828150@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Kurt Roeckx <Q(at)ping(dot)be> writes:
> That assumes the memcmp starts from the first char and not from
> the last. If it starts from the last you have undefined
> behaviour.

Hmm. I suppose you could get a reference off the end of memory;
pretty improbable but we have actually seen similar bugs in the field.
Okay, will fix.

regards, tom lane

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Andrew Dunstan 2004-02-03 18:10:46 Re: [PATCHES] log session end - again
Previous Message Kurt Roeckx 2004-02-03 17:04:30 Re: Fix memcmp() with different sizes.