1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
Author: Steffen Möller
Last-Update: 2018-05-23 20:24:29 +0200
Desctiption: Fix format security issue
--- ghmm.orig/ghmm/xmlwriter.c
+++ ghmm/ghmm/xmlwriter.c
@@ -354,7 +354,7 @@
bgId = f->model.d[moNo]->background_id[sNo];
if (bgId != GHMM_kNoBackgroundDistribution) {
if (f->model.d[moNo]->bp->name[bgId]) {
- rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "backgroundKey", f->model.d[moNo]->bp->name[bgId]);
+ rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "backgroundKey", "%s", f->model.d[moNo]->bp->name[bgId]);
}
else{
rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "backgroundKey", "bg_%d", bgId);
|