1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-28 22:50:07 +03:00

Add some security rules to the documentations

This commit is contained in:
icy17 2024-07-29 10:54:45 +08:00
parent 36ea881b9d
commit 5e2d01d857
2 changed files with 3 additions and 3 deletions

View File

@ -2858,10 +2858,10 @@ xmlInitParserCtxt(xmlParserCtxtPtr ctxt)
/**
* xmlFreeParserCtxt:
* @ctxt: an XML parser context
* @ctxt: an XML parser context. The context should be obtained from an API such as xmlNewSAXParserCtxt and should not have been previously freed.
*
* Free all the memory used by a parser context. However the parsed
* document in ctxt->myDoc is not freed.
* document in ctxt->myDoc is not freed. The caller should not attempt to access or dereference the ctxt parameter after invoking xmlFreeParserCtxt.
*/
void

2
uri.c
View File

@ -1019,7 +1019,7 @@ xmlParseURI(const char *str) {
/**
* xmlParseURIReference:
* @uri: pointer to an URI structure
* @uri: pointer to an URI structure. The caller should initialize this pointer using APIs such as xmlCreateURI. This parameter must not be NULL.
* @str: the string to analyze
*
* Parse an URI reference string based on RFC 3986 and fills in the