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

Side by Side Diff: third_party/libxslt/libxslt/xsltutils.h

Issue 10441148: Fix crash with unexpected DTD nodes in XSLT. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « third_party/libxslt/README.chromium ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Summary: set of utilities for the XSLT engine 2 * Summary: set of utilities for the XSLT engine
3 * Description: interfaces for the utilities module of the XSLT engine. 3 * Description: interfaces for the utilities module of the XSLT engine.
4 * things like message handling, profiling, and other 4 * things like message handling, profiling, and other
5 * generally useful routines. 5 * generally useful routines.
6 * 6 *
7 * Copy: See Copyright for the status of this software. 7 * Copy: See Copyright for the status of this software.
8 * 8 *
9 * Author: Daniel Veillard 9 * Author: Daniel Veillard
10 */ 10 */
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 xsltGenericError(xsltGenericErrorContext, \ 45 xsltGenericError(xsltGenericErrorContext, \
46 "Internal error at %s:%d\n", \ 46 "Internal error at %s:%d\n", \
47 __FILE__, __LINE__); 47 __FILE__, __LINE__);
48 48
49 /** 49 /**
50 * IS_XSLT_ELEM: 50 * IS_XSLT_ELEM:
51 * 51 *
52 * Checks that the element pertains to XSLT namespace. 52 * Checks that the element pertains to XSLT namespace.
53 */ 53 */
54 #define IS_XSLT_ELEM(n) \ 54 #define IS_XSLT_ELEM(n) \
55 (((n) != NULL) && ((n)->ns != NULL) &&» » » » \ 55 (((n) != NULL) && ((n)->type == XML_ELEMENT_NODE) && \
56 (xmlStrEqual((n)->ns->href, XSLT_NAMESPACE))) 56 ((n)->ns != NULL) && (xmlStrEqual((n)->ns->href, XSLT_NAMESPACE)))
57 57
58 /** 58 /**
59 * IS_XSLT_NAME: 59 * IS_XSLT_NAME:
60 * 60 *
61 * Checks the value of an element in XSLT namespace. 61 * Checks the value of an element in XSLT namespace.
62 */ 62 */
63 #define IS_XSLT_NAME(n, val) \ 63 #define IS_XSLT_NAME(n, val) \
64 (xmlStrEqual((n)->name, (const xmlChar *) (val))) 64 (xmlStrEqual((n)->name, (const xmlChar *) (val)))
65 65
66 /** 66 /**
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 XSLTPUBFUN void XSLTCALL 300 XSLTPUBFUN void XSLTCALL
301 xslDropCall (void); 301 xslDropCall (void);
302 302
303 #ifdef __cplusplus 303 #ifdef __cplusplus
304 } 304 }
305 #endif 305 #endif
306 306
307 #endif /* __XML_XSLTUTILS_H__ */ 307 #endif /* __XML_XSLTUTILS_H__ */
308 308
309 309
OLDNEW
« no previous file with comments | « third_party/libxslt/README.chromium ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698