summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbfriesen <bfriesen>2015-05-30 23:49:28 +0000
committerbfriesen <bfriesen>2015-05-30 23:49:28 +0000
commit8a6b5e1406de90736bcd98169494e158878d5336 (patch)
treeff863c9c8c7b46a3c5b45172f0728d38123fddbb
parentf2804031e979b58c218bc5e078692fadcc76ebc6 (diff)
downloadlibtiff-8a6b5e1406de90736bcd98169494e158878d5336.tar.gz
* libtiff/tif_ojpeg.c (OJPEGReadBufferFill): Fix Coverity 603400
"Missing break in switch".
-rw-r--r--ChangeLog3
-rw-r--r--libtiff/tif_ojpeg.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 2d5a0632..8a769fb7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2015-05-30 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
+ * libtiff/tif_ojpeg.c (OJPEGReadBufferFill): Fix Coverity 603400
+ "Missing break in switch".
+
* contrib/addtiffo/tif_overview.c (TIFF_DownSample): Check buffer
size calculation for overflow.
diff --git a/libtiff/tif_ojpeg.c b/libtiff/tif_ojpeg.c
index 61f42210..badd886f 100644
--- a/libtiff/tif_ojpeg.c
+++ b/libtiff/tif_ojpeg.c
@@ -1,4 +1,4 @@
-/* $Id: tif_ojpeg.c,v 1.58 2014-12-25 18:29:11 erouault Exp $ */
+/* $Id: tif_ojpeg.c,v 1.59 2015-05-30 23:49:28 bfriesen Exp $ */
/* WARNING: The type of JPEG encapsulation defined by the TIFF Version 6.0
specification is now totally obsolete and deprecated for new applications and
@@ -1960,6 +1960,7 @@ OJPEGReadBufferFill(OJPEGState* sp)
break;
case osibsJpegInterchangeFormat:
sp->in_buffer_source=osibsStrile;
+ break;
case osibsStrile:
if (!_TIFFFillStriles( sp->tif )
|| sp->tif->tif_dir.td_stripoffset == NULL