File: buildError.patch

package info (click to toggle)
ghmm 0.9~rc3-11.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,172 kB
  • sloc: ansic: 25,557; sh: 11,204; python: 6,739; xml: 1,515; makefile: 310
file content (15 lines) | stat: -rw-r--r-- 694 bytes parent folder | download | duplicates (2)
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);