Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0549de0

Browse files
committed
Fix segfault when xpath_list function is applied to an invalid document.
John Gray
1 parent8462086 commit0549de0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎contrib/xml2/xpath.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,10 @@ pgxml_result_to_text(xmlXPathObjectPtr res,
582582
text*xpres;
583583

584584
if (res==NULL)
585+
{
586+
xmlCleanupParser();
585587
returnNULL;
588+
}
586589
switch (res->type)
587590
{
588591
caseXPATH_NODESET:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp