diff options
author | Alexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de> | 2004-09-17 08:58:20 +0000 |
---|---|---|
committer | Alexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de> | 2004-09-17 08:58:20 +0000 |
commit | c3ba808aef8fcf59b04eb959e9958159648eae8a (patch) | |
tree | 398524d47808bbe1dd299f0dee99c0508c88d7af /src/CrDatFrI.c | |
parent | 942f06393a915ff354c57d3efae651dca2b3bc75 (diff) |
Import XORG-6_8_1 to CYGWIN branchCYGWIN-6_8_1-MERGE
Diffstat (limited to 'src/CrDatFrI.c')
-rw-r--r-- | src/CrDatFrI.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/CrDatFrI.c b/src/CrDatFrI.c index 55f8b06..8bec109 100644 --- a/src/CrDatFrI.c +++ b/src/CrDatFrI.c @@ -124,6 +124,8 @@ XpmCreateDataFromXpmImage(data_return, image, info) */ header_nlines = 1 + image->ncolors; header_size = sizeof(char *) * header_nlines; + if (header_size >= SIZE_MAX / sizeof(char *)) + return (XpmNoMemory); header = (char **) XpmCalloc(header_size, sizeof(char *)); if (!header) return (XpmNoMemory); |