mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-02 11:09:29 +00:00
- Fix coredumps with bad tiff-files
http://bugzilla.remotesensing.org/show_bug.cgi?id=440
This commit is contained in:
parent
dee1f7cfab
commit
06242a284d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=95054
@ -9,6 +9,7 @@
|
||||
|
||||
PORTNAME= tiff
|
||||
PORTVERSION= 3.6.0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= graphics
|
||||
MASTER_SITES= ftp://ftp.remotesensing.org/pub/libtiff/ \
|
||||
http://libtiff.maptools.org/dl/
|
||||
|
27
graphics/tiff/files/patch-libtiff-tif_dir.c
Normal file
27
graphics/tiff/files/patch-libtiff-tif_dir.c
Normal file
@ -0,0 +1,27 @@
|
||||
--- libtiff/tif_dir.c.orig Tue Sep 30 08:13:07 2003
|
||||
+++ libtiff/tif_dir.c Mon Dec 1 15:36:11 2003
|
||||
@@ -607,18 +607,18 @@
|
||||
va_end(ap);
|
||||
return (status);
|
||||
badvalue:
|
||||
- TIFFError(module, "%.1000s: Bad value %d for \"%s\"", v,
|
||||
- tif->tif_name, _TIFFFieldWithTag(tif, tag)->field_name);
|
||||
+ TIFFError(module, "%.1000s: Bad value %d for \"%s\"",
|
||||
+ tif->tif_name, v, _TIFFFieldWithTag(tif, tag)->field_name);
|
||||
va_end(ap);
|
||||
return (0);
|
||||
badvalue32:
|
||||
- TIFFError(module, "%.1000s: Bad value %ld for \"%s\"", v32,
|
||||
- tif->tif_name, _TIFFFieldWithTag(tif, tag)->field_name);
|
||||
+ TIFFError(module, "%.1000s: Bad value %ld for \"%s\"",
|
||||
+ tif->tif_name, v32, _TIFFFieldWithTag(tif, tag)->field_name);
|
||||
va_end(ap);
|
||||
return (0);
|
||||
badvaluedbl:
|
||||
- TIFFError(module, "%.1000s: Bad value %f for \"%s\"", d,
|
||||
- tif->tif_name, _TIFFFieldWithTag(tif, tag)->field_name);
|
||||
+ TIFFError(module, "%.1000s: Bad value %f for \"%s\"",
|
||||
+ tif->tif_name, d, _TIFFFieldWithTag(tif, tag)->field_name);
|
||||
va_end(ap);
|
||||
return (0);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user