diff options
author | CoprDistGit <infra@openeuler.org> | 2024-08-06 02:47:34 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-08-06 02:47:34 +0000 |
commit | a54f448a417f6e140d6bcc90cda17c741cabb624 (patch) | |
tree | cedec9d0bcd36f48352711492ddbd4c613af88d3 /libsmi-0.4.8-format-security-fix.patch | |
parent | 155e0f06223539ea67b9e49104d5598c38065ed1 (diff) |
automatic import of libsmiopeneuler24.03_LTS
Diffstat (limited to 'libsmi-0.4.8-format-security-fix.patch')
-rw-r--r-- | libsmi-0.4.8-format-security-fix.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/libsmi-0.4.8-format-security-fix.patch b/libsmi-0.4.8-format-security-fix.patch new file mode 100644 index 0000000..85c5de1 --- /dev/null +++ b/libsmi-0.4.8-format-security-fix.patch @@ -0,0 +1,21 @@ +diff -up libsmi-0.4.8/tools/dump-tree.c.format-security libsmi-0.4.8/tools/dump-tree.c +--- libsmi-0.4.8/tools/dump-tree.c.format-security 2013-12-03 13:57:07.138165398 -0500 ++++ libsmi-0.4.8/tools/dump-tree.c 2013-12-03 13:57:29.024137637 -0500 +@@ -117,7 +117,7 @@ static void fprintIndex(FILE *f, SmiNode + smiElement; smiElement = smiGetNextElement(smiElement), i++) { + if (i > 0) fprintf(f, ","); + if (indexname) { +- fprintf(f, indexname); ++ fprintf(f, "%s", indexname); + } + indexname = smiGetElementNode(smiElement)->name; + } +@@ -143,7 +143,7 @@ static void fprintObjects(FILE *f, SmiNo + smiElement = smiGetNextElement(smiElement), i++) { + if (i > 0) fprintf(f, ","); + if (objectname) { +- fprintf(f, objectname); ++ fprintf(f, "%s", objectname); + } + objectname = smiGetElementNode(smiElement)->name; + } |