Files
openGauss-third_party/dependency/libxml2/CVE-2023-29469.patch
2023-04-26 14:38:27 +08:00

13 lines
387 B
Diff

--- a/dict.c 2023-04-26 10:32:58.249262852 +0800
+++ b/dict.c 2023-04-26 10:35:00.362658956 +0800
@@ -451,7 +451,8 @@
xmlDictComputeFastKey(const xmlChar *name, int namelen, int seed) {
unsigned long value = seed;
- if (name == NULL) return(0);
+ if ((name == NULL) || (namelen <= 0))
+ return(value);
value += *name;
value <<= 5;
if (namelen > 10) {