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

Unified Diff: third_party/libxslt/libxslt/security.c

Issue 661058: libxslt update (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/libxslt/libxslt/preproc.c ('k') | third_party/libxslt/libxslt/templates.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/libxslt/libxslt/security.c
===================================================================
--- third_party/libxslt/libxslt/security.c (revision 39981)
+++ third_party/libxslt/libxslt/security.c (working copy)
@@ -58,6 +58,7 @@
#include "xslt.h"
#include "xsltInternals.h"
#include "xsltutils.h"
+#include "extensions.h"
#include "security.h"
@@ -88,6 +89,8 @@
xsltNewSecurityPrefs(void) {
xsltSecurityPrefsPtr ret;
+ xsltInitGlobals();
+
ret = (xsltSecurityPrefsPtr) xmlMalloc(sizeof(xsltSecurityPrefs));
if (ret == NULL) {
xsltTransformError(NULL, NULL, NULL,
@@ -124,6 +127,7 @@
int
xsltSetSecurityPrefs(xsltSecurityPrefsPtr sec, xsltSecurityOption option,
xsltSecurityCheck func) {
+ xsltInitGlobals();
if (sec == NULL)
return(-1);
switch (option) {
@@ -177,6 +181,7 @@
*/
void
xsltSetDefaultSecurityPrefs(xsltSecurityPrefsPtr sec) {
+
xsltDefaultSecurityPrefs = sec;
}
« no previous file with comments | « third_party/libxslt/libxslt/preproc.c ('k') | third_party/libxslt/libxslt/templates.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698