Re: potential integer overflow in md.c

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: potential integer overflow in md.c
Дата
Msg-id 22844.1175705277@sss.pgh.pa.us
обсуждение исходный текст
Ответ на potential integer overflow in md.c  (Zdenek Kotala <Zdenek.Kotala@Sun.COM>)
Ответы Re: potential integer overflow in md.c  (Zdenek Kotala <Zdenek.Kotala@Sun.COM>)
Список 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 по дате отправления:

Предыдущее
От: Zdenek Kotala
Дата:
Сообщение: potential integer overflow in md.c
Следующее
От: Zdenek Kotala
Дата:
Сообщение: Re: potential integer overflow in md.c