diff options
author | Michael BrĂ¼ning <michael.bruning@qt.io> | 2022-12-21 13:43:40 +0100 |
---|---|---|
committer | Michael BrĂ¼ning <michael.bruning@qt.io> | 2023-01-12 12:02:43 +0000 |
commit | 97a1254923022e66fa75245c3ace64f58112cba6 (patch) | |
tree | 9197c3b414e24ca77d34abc1b7794776dc9df742 /chromium/third_party/libxml/src/xmlwriter.c | |
parent | 28a1b2eb95e06bc4dd8c93bb61106e35eaf715c7 (diff) | |
download | qtwebengine-chromium-97a1254923022e66fa75245c3ace64f58112cba6.tar.gz |
[Backport] Security bug 1394382
Manually update libxml to the version 2.9.13 and the sha1
used on 102-based.
Change-Id: I699696b395258a6ba3a1a9b2f48d10036f2b638f
Reviewed-on: https://codereview.qt-project.org/c/qt/qtwebengine-chromium/+/450083
Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'chromium/third_party/libxml/src/xmlwriter.c')
-rw-r--r-- | chromium/third_party/libxml/src/xmlwriter.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/chromium/third_party/libxml/src/xmlwriter.c b/chromium/third_party/libxml/src/xmlwriter.c index 2ca2056e234..278f25d61a5 100644 --- a/chromium/third_party/libxml/src/xmlwriter.c +++ b/chromium/third_party/libxml/src/xmlwriter.c @@ -21,9 +21,10 @@ #include <libxml/xmlwriter.h> -#include "buf.h" -#include "enc.h" -#include "save.h" +#include "private/buf.h" +#include "private/enc.h" +#include "private/error.h" +#include "private/save.h" #define B64LINELEN 72 #define B64CRLF "\r\n" @@ -188,7 +189,7 @@ xmlNewTextWriter(xmlOutputBufferPtr out) "xmlNewTextWriter : out of memory!\n"); return NULL; } - memset(ret, 0, (size_t) sizeof(xmlTextWriter)); + memset(ret, 0, sizeof(xmlTextWriter)); ret->nodes = xmlListCreate(xmlFreeTextWriterStackEntry, xmlCmpTextWriterStackEntry); @@ -1541,7 +1542,7 @@ static int xmlOutputBufferWriteBase64(xmlOutputBufferPtr out, int len, const unsigned char *data) { - static unsigned char dtable[64] = + static const unsigned char dtable[64] = {'A','B','C','D','E','F','G','H','I','J','K','L','M', 'N','O','P','Q','R','S','T','U','V','W','X','Y','Z', 'a','b','c','d','e','f','g','h','i','j','k','l','m', @@ -1674,7 +1675,7 @@ xmlOutputBufferWriteBinHex(xmlOutputBufferPtr out, { int count; int sum; - static char hex[16] = + static const char hex[16] = {'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'}; int i; |