blob: 822d33121a39de414046d64b36bf88658e639da1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
$NetBSD: patch-au,v 1.5 2006/06/08 11:05:14 salo Exp $
Security fix for CVE-2006-2193, from Ubuntu.
--- tools/tiff2pdf.c.orig 2006-03-21 17:42:51.000000000 +0100
+++ tools/tiff2pdf.c 2006-06-08 12:39:11.000000000 +0200
@@ -3668,7 +3668,7 @@
written += TIFFWriteFile(output, (tdata_t) "(", 1);
for (i=0;i<len;i++){
if((pdfstr[i]&0x80) || (pdfstr[i]==127) || (pdfstr[i]<32)){
- sprintf(buffer, "\\%.3o", pdfstr[i]);
+ sprintf(buffer, "\\%.3hho", pdfstr[i]);
written += TIFFWriteFile(output, (tdata_t) buffer, 4);
} else {
switch (pdfstr[i]){
|