Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
flatbuffers
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
flatbuffers
Commits
9ad73bf5
Commit
9ad73bf5
authored
Dec 17, 2018
by
Vladimir Glavnyy
Committed by
Wouter van Oortmerssen
Dec 17, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix 'no_sanitize_undefined' attribute for GCC4.8 (#5090)
parent
dba962eb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
CMakeLists.txt
CMakeLists.txt
+1
-1
base.h
include/flatbuffers/base.h
+1
-1
No files found.
CMakeLists.txt
View file @
9ad73bf5
...
...
@@ -219,7 +219,7 @@ function(add_fsanitize_to_target _target _sanitizer)
# FLATBUFFERS_CODE_SANITIZE: boolean {ON,OFF,YES,NO} or string with list of sanitizer.
# List of sanitizer is string starts with '=': "=address,undefined,thread,memory".
if
((
${
CMAKE_CXX_COMPILER_ID
}
MATCHES
"Clang"
)
OR
((
${
CMAKE_CXX_COMPILER_ID
}
MATCHES
"GNU"
)
AND
NOT
(
CMAKE_CXX_COMPILER_VERSION VERSION_LESS
"4.
8
"
))
((
${
CMAKE_CXX_COMPILER_ID
}
MATCHES
"GNU"
)
AND
NOT
(
CMAKE_CXX_COMPILER_VERSION VERSION_LESS
"4.
9
"
))
)
set
(
_sanitizer_flags
"=address,undefined"
)
if
(
_sanitizer MATCHES
"=.*"
)
...
...
include/flatbuffers/base.h
View file @
9ad73bf5
...
...
@@ -212,7 +212,7 @@
// - __supress_ubsan__("signed-integer-overflow")
#if defined(__clang__)
#define __supress_ubsan__(type) __attribute__((no_sanitize(type)))
#elif defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 40
8
)
#elif defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 40
9
)
#define __supress_ubsan__(type) __attribute__((no_sanitize_undefined))
#else
#define __supress_ubsan__(type)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment