| От | Tom Lane |
|---|---|
| Тема | Re: suspicious pointer/integer coersion |
| Дата | |
| Msg-id | 6170.1121026262@sss.pgh.pa.us обсуждение |
| Ответ на | suspicious pointer/integer coersion (Andrew Dunstan <andrew@dunslane.net>) |
| Ответы |
Re: suspicious pointer/integer coersion
|
| Список | pgsql-hackers |
Andrew Dunstan <andrew@dunslane.net> writes:
> I have just noticed this code in plperl.c:
> hv_store(plperl_proc_hash, internal_proname, proname_len,
> newSViv((IV) prodesc), 0);
> basically, here prodesc is a pointer to a struct, and we are storing it
> as an integer in a perl hash for easy lookup by stringified oid.
> How safe is this conversion on 64 bit platforms?
Not at all. I'd vote for converting the whole thing to a dynahash
hashtable ...
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера