Re: potential integer overflow in md.c

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: potential integer overflow in md.c
Date: 2007-04-04 16:47:57
Message-ID: 22844.1175705277@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Zdenek Kotala 2007-04-04 16:52:46 Re: potential integer overflow in md.c
Previous Message Zdenek Kotala 2007-04-04 16:27:03 potential integer overflow in md.c