Re: Avoid a possible overflow (src/backend/utils/sort/logtape.c)

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Ranier Vilela <ranier(dot)vf(at)gmail(dot)com>
Cc: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Avoid a possible overflow (src/backend/utils/sort/logtape.c)
Date: 2023-08-24 23:47:39
Message-ID: ZOfsGzuS/mLCr1jM@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Aug 24, 2023 at 02:46:42PM -0300, Ranier Vilela wrote:
> With Windows both *long* and *int* are 4 bytes.
> But with Linux *long* is 8 bytes and *int* are 4 bytes.

And I recall that WIN32 is the only place where we treat long as 4
bytes.

> patch attached.

Yeah, it looks like you're right here. Will do something about that.
--
Michael

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Vik Fearing 2023-08-25 00:05:54 Re: ALTER COLUMN ... SET EXPRESSION to alter stored generated column's expression
Previous Message Andres Freund 2023-08-24 22:10:00 Re: initdb caching during tests