diff options
Diffstat (limited to 'format-security.patch')
-rw-r--r-- | format-security.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/format-security.patch b/format-security.patch new file mode 100644 index 000000000000..3679d7de75b3 --- /dev/null +++ b/format-security.patch @@ -0,0 +1,36 @@ +--- a/bdf.c ++++ b/bdf.c +@@ -2843,14 +2843,14 @@ + bpr = ((c->bbx.width * font->bpp) + 7) >> 3; + for (j = 0; bpr != 0 && j < c->bytes; j++) { + if (j && j % bpr == 0) +- fprintf(out, eol); ++ fprintf(out, "%s", eol); + fprintf(out, "%02X", c->bitmap[j]); + } + /* + * Handle empty bitmaps like this. + */ + if (c->bbx.height > 0) +- fprintf(out, eol); ++ fprintf(out, "%s", eol); + fprintf(out, "ENDCHAR%s", eol); + + /* +@@ -2915,14 +2915,14 @@ + bpr = ((c->bbx.width * font->bpp) + 7) >> 3; + for (j = 0; bpr != 0 && j < c->bytes; j++) { + if (j && j % bpr == 0) +- fprintf(out, eol); ++ fprintf(out, "%s", eol); + fprintf(out, "%02X", c->bitmap[j]); + } + /* + * Handle empty bitmaps like this. + */ + if (c->bbx.height > 0) +- fprintf(out, eol); ++ fprintf(out, "%s", eol); + fprintf(out, "ENDCHAR%s", eol); + + /* |