public inbox for [email protected]  
help / color / mirror / Atom feed
From: Michael Paquier <[email protected]>
To: Ranier Vilela <[email protected]>
Cc: Pg Hackers <[email protected]>
Subject: Re: Avoid a possible overflow (src/backend/utils/sort/logtape.c)
Date: Fri, 25 Aug 2023 08:47:39 +0900
Message-ID: <ZOfsGzuS/[email protected]> (raw)
In-Reply-To: <CAEudQApLDWCBR_xmwNjGBrDo+f+S4E87x3s7-+hoaKqYdtC4JQ@mail.gmail.com>
References: <CAEudQApLDWCBR_xmwNjGBrDo+f+S4E87x3s7-+hoaKqYdtC4JQ@mail.gmail.com>

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


Attachments:

  [application/pgp-signature] signature.asc (833B, ../ZOfsGzuS%[email protected]/2-signature.asc)
  download

view thread (5+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: Avoid a possible overflow (src/backend/utils/sort/logtape.c)
  In-Reply-To: <ZOfsGzuS/[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox