Re: Fix memcmp() with different sizes.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Fix memcmp() with different sizes.
Дата
Msg-id 19532.1075828150@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Fix memcmp() with different sizes.  (Kurt Roeckx <Q@ping.be>)
Список pgsql-patches
Kurt Roeckx <Q@ping.be> writes:
> That assumes the memcmp starts from the first char and not from
> the last.  If it starts from the last you have undefined
> behaviour.

Hmm.  I suppose you could get a reference off the end of memory;
pretty improbable but we have actually seen similar bugs in the field.
Okay, will fix.

            regards, tom lane

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

Предыдущее
От: Kurt Roeckx
Дата:
Сообщение: Re: Fix memcmp() with different sizes.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: fix memcpy() overlap