Re: BUG #15150: Reading uninitialised value in NISortAffixes(tsearch/spell.c)

Поиск
Список
Период
Сортировка
От Arthur Zakirov
Тема Re: BUG #15150: Reading uninitialised value in NISortAffixes(tsearch/spell.c)
Дата
Msg-id 20180412115638.GA19444@zakirov.localdomain
обсуждение исходный текст
Ответ на BUG #15150: Reading uninitialised value in NISortAffixes(tsearch/spell.c)  (PG Bug reporting form <noreply@postgresql.org>)
Ответы Re: BUG #15150: Reading uninitialised value in NISortAffixes (tsearch/spell.c)  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
Hello,

> Bug reference:      15150
> Logged by:          Alexander Lakhin
> Email address:      exclusion@gmail.com
> PostgreSQL version: 10.3
> Operating system:   Debian-8
> Description:        
> 
> It looks that the following condition in NISortAffixes(IspellDict *Conf)
> uses uninitialised ptr->issuffix:
> 
>   if (ptr == Conf->CompoundAffix ||
>      ptr->issuffix != (ptr - 1)->issuffix ||
 
Yes, you are right. The second condition isn't right. Instead of
"ptr->issuffix != (ptr - 1)->issuffix" "Affix->type" should be checked
because we check for uniqueness of affixes.

The patch is attached.

-- 
Arthur Zakirov
Postgres Professional: http://www.postgrespro.com
Russian Postgres Company

Вложения

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

Предыдущее
От: PG Bug reporting form
Дата:
Сообщение: BUG #15150: Reading uninitialised value in NISortAffixes(tsearch/spell.c)
Следующее
От: PG Bug reporting form
Дата:
Сообщение: BUG #15151: Error with wal replay after planned manual switchover.