Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(229)

Side by Side Diff: third_party/expat/files/lib/expat.h

Issue 2761253002: Update expat to 2.2.0 to fix CVE vulnerability. (Closed)
Patch Set: update README.chromium Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/expat/files/lib/amigaconfig.h ('k') | third_party/expat/files/lib/expat_config.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (c) 1998, 1999, 2000 Thai Open Source Software Center Ltd 1 /* Copyright (c) 1998, 1999, 2000 Thai Open Source Software Center Ltd
2 See the file COPYING for copying permission. 2 See the file COPYING for copying permission.
3 */ 3 */
4 4
5 #ifndef Expat_INCLUDED 5 #ifndef Expat_INCLUDED
6 #define Expat_INCLUDED 1 6 #define Expat_INCLUDED 1
7 7
8 #ifdef __VMS 8 #ifdef __VMS
9 /* 0 1 2 3 0 1 2 3 9 /* 0 1 2 3 0 1 2 3
10 1234567890123456789012345678901 1234567890123456789012345678901 */ 10 1234567890123456789012345678901 1234567890123456789012345678901 */
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 const XML_Char *base, 335 const XML_Char *base,
336 const XML_Char *systemId, 336 const XML_Char *systemId,
337 const XML_Char *publicId, 337 const XML_Char *publicId,
338 const XML_Char *notationName); 338 const XML_Char *notationName);
339 339
340 XMLPARSEAPI(void) 340 XMLPARSEAPI(void)
341 XML_SetEntityDeclHandler(XML_Parser parser, 341 XML_SetEntityDeclHandler(XML_Parser parser,
342 XML_EntityDeclHandler handler); 342 XML_EntityDeclHandler handler);
343 343
344 /* OBSOLETE -- OBSOLETE -- OBSOLETE 344 /* OBSOLETE -- OBSOLETE -- OBSOLETE
345 This handler has been superceded by the EntityDeclHandler above. 345 This handler has been superseded by the EntityDeclHandler above.
346 It is provided here for backward compatibility. 346 It is provided here for backward compatibility.
347 347
348 This is called for a declaration of an unparsed (NDATA) entity. 348 This is called for a declaration of an unparsed (NDATA) entity.
349 The base argument is whatever was set by XML_SetBase. The 349 The base argument is whatever was set by XML_SetBase. The
350 entityName, systemId and notationName arguments will never be 350 entityName, systemId and notationName arguments will never be
351 NULL. The other arguments may be. 351 NULL. The other arguments may be.
352 */ 352 */
353 typedef void (XMLCALL *XML_UnparsedEntityDeclHandler) ( 353 typedef void (XMLCALL *XML_UnparsedEntityDeclHandler) (
354 void *userData, 354 void *userData,
355 const XML_Char *entityName, 355 const XML_Char *entityName,
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after
966 #define XML_GetErrorLineNumber XML_GetCurrentLineNumber 966 #define XML_GetErrorLineNumber XML_GetCurrentLineNumber
967 #define XML_GetErrorColumnNumber XML_GetCurrentColumnNumber 967 #define XML_GetErrorColumnNumber XML_GetCurrentColumnNumber
968 #define XML_GetErrorByteIndex XML_GetCurrentByteIndex 968 #define XML_GetErrorByteIndex XML_GetCurrentByteIndex
969 969
970 /* Frees the content model passed to the element declaration handler */ 970 /* Frees the content model passed to the element declaration handler */
971 XMLPARSEAPI(void) 971 XMLPARSEAPI(void)
972 XML_FreeContentModel(XML_Parser parser, XML_Content *model); 972 XML_FreeContentModel(XML_Parser parser, XML_Content *model);
973 973
974 /* Exposing the memory handling functions used in Expat */ 974 /* Exposing the memory handling functions used in Expat */
975 XMLPARSEAPI(void *) 975 XMLPARSEAPI(void *)
976 XML_ATTR_MALLOC
977 XML_ATTR_ALLOC_SIZE(2)
976 XML_MemMalloc(XML_Parser parser, size_t size); 978 XML_MemMalloc(XML_Parser parser, size_t size);
977 979
978 XMLPARSEAPI(void *) 980 XMLPARSEAPI(void *)
981 XML_ATTR_ALLOC_SIZE(3)
979 XML_MemRealloc(XML_Parser parser, void *ptr, size_t size); 982 XML_MemRealloc(XML_Parser parser, void *ptr, size_t size);
980 983
981 XMLPARSEAPI(void) 984 XMLPARSEAPI(void)
982 XML_MemFree(XML_Parser parser, void *ptr); 985 XML_MemFree(XML_Parser parser, void *ptr);
983 986
984 /* Frees memory used by the parser. */ 987 /* Frees memory used by the parser. */
985 XMLPARSEAPI(void) 988 XMLPARSEAPI(void)
986 XML_ParserFree(XML_Parser parser); 989 XML_ParserFree(XML_Parser parser);
987 990
988 /* Returns a string describing the error. */ 991 /* Returns a string describing the error. */
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
1024 typedef struct { 1027 typedef struct {
1025 enum XML_FeatureEnum feature; 1028 enum XML_FeatureEnum feature;
1026 const XML_LChar *name; 1029 const XML_LChar *name;
1027 long int value; 1030 long int value;
1028 } XML_Feature; 1031 } XML_Feature;
1029 1032
1030 XMLPARSEAPI(const XML_Feature *) 1033 XMLPARSEAPI(const XML_Feature *)
1031 XML_GetFeatureList(void); 1034 XML_GetFeatureList(void);
1032 1035
1033 1036
1034 /* Expat follows the GNU/Linux convention of odd number minor version for 1037 /* Expat follows the semantic versioning convention.
1035 beta/development releases and even number minor version for stable 1038 See http://semver.org.
1036 releases. Micro is bumped with each release, and set to 0 with each
1037 change to major or minor version.
1038 */ 1039 */
1039 #define XML_MAJOR_VERSION 2 1040 #define XML_MAJOR_VERSION 2
1040 #define XML_MINOR_VERSION 1 1041 #define XML_MINOR_VERSION 2
1041 #define XML_MICRO_VERSION 0 1042 #define XML_MICRO_VERSION 0
1042 1043
1043 #ifdef __cplusplus 1044 #ifdef __cplusplus
1044 } 1045 }
1045 #endif 1046 #endif
1046 1047
1047 #endif /* not Expat_INCLUDED */ 1048 #endif /* not Expat_INCLUDED */
OLDNEW
« no previous file with comments | « third_party/expat/files/lib/amigaconfig.h ('k') | third_party/expat/files/lib/expat_config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698