Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
protobuf-c
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
protobuf-c
Commits
c1ff5d6b
Commit
c1ff5d6b
authored
Dec 17, 2013
by
Nick Galbreath
Committed by
Ilya Lipnitskiy
Dec 20, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
protobuf-c/protobuf-c.c: prevent possible overflow on 64-bit systems
(fixes #106)
parent
b915eed3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
protobuf-c/protobuf-c.c
protobuf-c/protobuf-c.c
+1
-1
No files found.
protobuf-c/protobuf-c.c
View file @
c1ff5d6b
...
...
@@ -2248,7 +2248,7 @@ protobuf_c_message_init_generic (const ProtobufCMessageDescriptor *desc,
choose the number so that we would overflow if we needed
a slab larger than provided. */
#define MAX_SCANNED_MEMBER_SLAB \
(sizeof(
void*
)*8 - 1 \
(sizeof(
unsigned int
)*8 - 1 \
- BOUND_SIZEOF_SCANNED_MEMBER_LOG2 \
- FIRST_SCANNED_MEMBER_SLAB_SIZE_LOG2)
...
...
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