| От | Tom Lane |
|---|---|
| Тема | Re: strncmp->memcmp when we know the shorter length |
| Дата | |
| Msg-id | 24181.1292991465@sss.pgh.pa.us обсуждение |
| Ответ на | Re: strncmp->memcmp when we know the shorter length (Robert Haas <robertmhaas@gmail.com>) |
| Список | pgsql-hackers |
Robert Haas <robertmhaas@gmail.com> writes:
> On Tue, Dec 21, 2010 at 10:24 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> I'm fairly uncomfortable about the broad swath and low return of this
>> patch. �Noah is assuming that none of these places are relying on
>> strncmp to stop short upon finding a null, and I don't believe that
>> that's a safe assumption in every single place. �Nor do I believe that
>> it's worth the effort of trying to prove it safe in most of those
>> places.
> Eh, I already committed somewhat more than that. I did think about
> the concern which you raise.
Okay ... I was arguing for not bothering to expend that effort, but
since you already did, it's a moot point.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера