1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-26 00:37:43 +03:00

malloc-fail: Handle malloc failures in xmlSchemaInitTypes

Note that this changes the return value of public function
xmlSchemaInitTypes from void to int. This shouldn't break the ABI on
most platforms.

Found when investigating #500.
This commit is contained in:
Nick Wellnhofer
2023-03-14 13:55:06 +01:00
parent 64b76f8163
commit f8efa589e8
3 changed files with 163 additions and 46 deletions

View File

@@ -30,7 +30,7 @@ typedef enum {
XML_SCHEMA_WHITESPACE_COLLAPSE = 3
} xmlSchemaWhitespaceValueType;
XMLPUBFUN void
XMLPUBFUN int
xmlSchemaInitTypes (void);
XML_DEPRECATED
XMLPUBFUN void