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
3a2f6d53
Commit
3a2f6d53
authored
May 31, 2018
by
Wouter van Oortmerssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed ASAN false positive.
Change-Id: I79d9b2cddc61df5919bc4a93627fba2aa69e5d49 Tested: on Linux.
parent
06d3229d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
idl_parser.cpp
src/idl_parser.cpp
+2
-3
No files found.
src/idl_parser.cpp
View file @
3a2f6d53
...
...
@@ -135,9 +135,8 @@ inline CheckedError atot(const char *s, Parser &parser, T *val) {
int64_t
i
=
StringToInt
(
s
);
const
int64_t
min
=
flatbuffers
::
numeric_limits
<
T
>::
min
();
const
int64_t
max
=
flatbuffers
::
numeric_limits
<
T
>::
max
();
ECHECK
(
parser
.
CheckInRange
(
i
,
min
,
max
));
*
val
=
(
T
)
i
;
return
NoError
();
*
val
=
(
T
)
i
;
// Assign this first to make ASAN happy.
return
parser
.
CheckInRange
(
i
,
min
,
max
);
}
template
<>
inline
CheckedError
atot
<
uint64_t
>
(
const
char
*
s
,
Parser
&
parser
,
...
...
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