tiffcp.c: use INT_MAX
This commit is contained in:
parent
2b0d0e6997
commit
7cc76e9bc4
@ -41,6 +41,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <limits.h>
|
||||
|
||||
#include <ctype.h>
|
||||
|
||||
@ -1416,7 +1417,7 @@ DECLAREreadFunc(readSeparateTilesIntoBuffer)
|
||||
uint32 row;
|
||||
uint16 bps = 0, bytes_per_sample;
|
||||
|
||||
if (spp > (0x7fffffff / tilew))
|
||||
if (spp > (INT_MAX / tilew))
|
||||
{
|
||||
TIFFError(TIFFFileName(in), "Error, cannot handle that much samples per tile row (Tile Width * Samples/Pixel)");
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user