| AWARE [SYSTEMS] | Imaging expertise for the Delphi developer | |||||||
![]() |
TIFF and LibTiff Mailing List Archive | |||||||
LibTiff Mailing List
TIFF and LibTiff Mailing List Archive Contact
The TIFF Mailing List Homepage |
Thread2011.05.30 06:54 "[PATCH 5/5] * rgb2ycbcr.c (cvtRaster): unchecked malloc", by Jim MeyeringFrom: Jim Meyering <meyering@redhat.com>
---
tools/rgb2ycbcr.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/tools/rgb2ycbcr.c b/tools/rgb2ycbcr.c
index a9afd52..cc96d2f 100644
--- a/tools/rgb2ycbcr.c
+++ b/tools/rgb2ycbcr.c
@@ -259,6 +259,7 @@ cvtRaster(TIFF* tif, uint32* raster, uint32 width, uint32 height)
cc = rnrows*rwidth +
2*((rnrows*rwidth) / (horizSubSampling*vertSubSampling));
buf = (unsigned char*)_TIFFmalloc(cc);
+ // FIXME unchecked malloc
for (y = height; (int32) y > 0; y -= nrows) {
uint32 nr = (y > nrows ? nrows : y);
cvtStrip(buf, raster + (y-1)*width, nr, width);
--
1.7.5.2.660.g9f46c
|
|||||||