Re: potential integer overflow in md.c - Mailing list pgsql-bugs

From Tom Lane
Subject Re: potential integer overflow in md.c
Date
Msg-id 22844.1175705277@sss.pgh.pa.us
Whole thread Raw
In response to potential integer overflow in md.c  (Zdenek Kotala <Zdenek.Kotala@Sun.COM>)
Responses Re: potential integer overflow in md.c
List pgsql-bugs
Zdenek Kotala <Zdenek.Kotala@Sun.COM> writes:
> I found following expression in md.c:
>   seekpos = (long) (BLCKSZ * (blocknum % ((BlockNumber) RELSEG_SIZE)));

There's no percentage in touching that code unless you intend to enable
the non-segmented behavior; which will probably need more fixes than
just this.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Zdenek Kotala
Date:
Subject: potential integer overflow in md.c
Next
From: Zdenek Kotala
Date:
Subject: Re: potential integer overflow in md.c