Re: Regex with > 32k different chars causes a backend crash

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: Regex with > 32k different chars causes a backend crash
Дата
Msg-id 515C49AA.7070709@vmware.com
обсуждение исходный текст
Ответ на Re: Regex with > 32k different chars causes a backend crash  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Regex with > 32k different chars causes a backend crash  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 03.04.2013 18:21, Tom Lane wrote:
> Heikki Linnakangas<hlinnakangas@vmware.com>  writes:
>> A regex with that many different colors is an extreme case, so I think
>> it's enough to turn the assertion in newcolor() into a run-time check,
>> and throw a "too many colors in regexp" error. Alternatively, we could
>> expand 'color' from short to int, but that would double the memory usage
>> of sane regexps with less different characters.
>
> Obviously Henry didn't think that far ahead.  I agree that throwing
> an error is the best solution, and that widening "color" is probably
> not what we want to do.  You want to fix that, or shall I?

I can do it. I assume that Tcl has the same bug, so I'll submit a report 
there, too.

- Heikki



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Regex with > 32k different chars causes a backend crash
Следующее
От: Rodrigo Barboza
Дата:
Сообщение: c language functions