summaryrefslogtreecommitdiff
path: root/source/dng_shared.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/dng_shared.cpp')
-rw-r--r--source/dng_shared.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/dng_shared.cpp b/source/dng_shared.cpp
index 3ff40a4..4b00d24 100644
--- a/source/dng_shared.cpp
+++ b/source/dng_shared.cpp
@@ -640,9 +640,8 @@ bool dng_camera_profile_info::ParseTag (dng_stream &stream,
if (!skipSat0)
{
- if (!CheckTagCount (parentCode, tagCode, tagCount, fProfileHues *
- fProfileSats *
- fProfileVals * 3))
+ if (!CheckTagCount (parentCode, tagCode, tagCount,
+ SafeUint32Mult(fProfileHues, fProfileSats, fProfileVals, 3)))
return false;
}
@@ -763,9 +762,10 @@ bool dng_camera_profile_info::ParseTag (dng_stream &stream,
if (!skipSat0)
{
- if (!CheckTagCount (parentCode, tagCode, tagCount, fLookTableHues *
- fLookTableSats *
- fLookTableVals * 3))
+ if (!CheckTagCount (parentCode, tagCode, tagCount,
+ SafeUint32Mult(fLookTableHues,
+ fLookTableSats,
+ fLookTableVals, 3)))
return false;
}