pgsql: Fix some more bugs in contrib/xml2's xslt_process().
В списке pgsql-committers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | pgsql: Fix some more bugs in contrib/xml2's xslt_process(). |
| Дата | |
| Msg-id | E1SbhPG-0005CF-RE@gemulon.postgresql.org обсуждение |
| Список | pgsql-committers |
Fix some more bugs in contrib/xml2's xslt_process(). It failed to check for error return from xsltApplyStylesheet(), as reported by Peter Gagarinov. (So far as I can tell, libxslt provides no convenient way to get a useful error message in failure cases. There might be some inconvenient way, but considering that this code is deprecated it's hard to get enthusiastic about putting lots of work into it. So I just made it say "failed to apply stylesheet", in line with the existing error checks.) While looking at the code I also noticed that the string returned by xsltSaveResultToString was never freed, resulting in a session-lifespan memory leak. Back-patch to all supported versions. Branch ------ REL8_3_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/66fb03f53842e58d1025ad04888edc99f04793fa Modified Files -------------- contrib/xml2/xslt_proc.c | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера