| От | Tom Lane |
|---|---|
| Тема | Re: postgres 9.0 beta libpq empty binary array error |
| Дата | |
| Msg-id | 10381.1281378382@sss.pgh.pa.us обсуждение |
| Ответ на | Re: postgres 9.0 beta libpq empty binary array error (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>) |
| Ответы |
Re: postgres 9.0 beta libpq empty binary array error
|
| Список | pgsql-bugs |
Heikki Linnakangas <heikki.linnakangas@enterprisedb.com> writes:
> The behavior of empty arrays with dimensions is weird in general.
Agreed, but we shouldn't be introducing random restrictions in the name
of security.
Patch looks good to me, except that it occurs to me to wonder about
negative values of dim[i]. For small negative values this coding
will catch it, but what if it's large enough to overflow the other way?
Maybe use
if (dim[i] < 0 || lBound[i] > ub)
ereport...
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера