Re: [PATCH 1/3] Fix x + y < x overflow checks

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: [PATCH 1/3] Fix x + y < x overflow checks
Дата
Msg-id CA+TgmoYoOexFwRrewLcFvr+=J7b8hkdodRXS_Zp+j_vAXa1spA@mail.gmail.com
обсуждение исходный текст
Ответ на [PATCH 1/3] Fix x + y < x overflow checks  (Xi Wang <xi.wang@gmail.com>)
Список pgsql-hackers
On Thu, Jan 24, 2013 at 4:36 AM, Xi Wang <xi.wang@gmail.com> wrote:
> icc optimizes away the overflow check x + y < x (y > 0), because
> signed integer overflow is undefined behavior in C.  Instead, use
> a safe precondition test x > INT_MAX - y.

As you post these patches, please add them to:

https://commitfest.postgresql.org/action/commitfest_view/open

This will ensure that they (eventually) get looked at.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Event Triggers: adding information
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: autovacuum not prioritising for-wraparound tables