summaryrefslogtreecommitdiff
path: root/source/dng_shared.cpp
diff options
context:
space:
mode:
authorKinan Hakim <kinan@google.com>2016-01-25 17:34:19 +0100
committerKinan Hakim <kinan@google.com>2016-01-25 18:23:24 +0100
commit2bef8b90e267af3a2b74301eb415d0a5d04657fa (patch)
treef2ba0ef0d8246fc797aca7070b8e3dba5cf70136 /source/dng_shared.cpp
parent671e9caebb6a6d5580ae9bd7676c09501715b6f8 (diff)
downloaddng_sdk-2bef8b90e267af3a2b74301eb415d0a5d04657fa.tar.gz
Fix and avoid some integer overflows
Change-Id: I479a2b3bff0a0aeaa4f54e1b45226998b4d99775
Diffstat (limited to 'source/dng_shared.cpp')
-rw-r--r--source/dng_shared.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/dng_shared.cpp b/source/dng_shared.cpp
index db599b9..5384116 100644
--- a/source/dng_shared.cpp
+++ b/source/dng_shared.cpp
@@ -1028,6 +1028,11 @@ bool dng_camera_profile_info::ParseTag (dng_stream &stream,
/*****************************************************************************/
+#if defined(__clang__) && defined(__has_attribute)
+#if __has_attribute(no_sanitize)
+__attribute__((no_sanitize("unsigned-integer-overflow")))
+#endif
+#endif
bool dng_camera_profile_info::ParseExtended (dng_stream &stream)
{