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

Поиск
Список
Период
Сортировка
От Noah Misch
Тема Re: Regex with > 32k different chars causes a backend crash
Дата
Msg-id 20130404003256.GA11248@tornado.leadboat.com
обсуждение исходный текст
Ответ на Re: Regex with > 32k different chars causes a backend crash  (Heikki Linnakangas <hlinnakangas@vmware.com>)
Ответы Re: Regex with > 32k different chars causes a backend crash  (Heikki Linnakangas <hlinnakangas@vmware.com>)
Список pgsql-hackers
On Wed, Apr 03, 2013 at 08:09:15PM +0300, Heikki Linnakangas wrote:
> --- a/src/include/regex/regguts.h
> +++ b/src/include/regex/regguts.h
> @@ -148,6 +148,7 @@
>  typedef short color;            /* colors of characters */
>  typedef int pcolor;                /* what color promotes to */
>  
> +#define MAX_COLOR    32767        /* max value that fits in 'color' datatype */

This should use SHRT_MAX, no?  (Not that any supported platform differs here.)

-- 
Noah Misch
EnterpriseDB                                 http://www.enterprisedb.com



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

Предыдущее
От: Jeff Davis
Дата:
Сообщение: Re: corrupt pages detected by enabling checksums
Следующее
От: Andres Freund
Дата:
Сообщение: Re: corrupt pages detected by enabling checksums