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
fb39c176
Commit
fb39c176
authored
Nov 27, 2013
by
Ilya Lipnitskiy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
protobuf-c/protobuf-c.c: add a few extra checks to
protobuf_c_message_check
parent
746ea972
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
protobuf-c/protobuf-c.c
protobuf-c/protobuf-c.c
+4
-0
No files found.
protobuf-c/protobuf-c.c
View file @
fb39c176
...
...
@@ -2625,6 +2625,10 @@ protobuf_c_message_init (const ProtobufCMessageDescriptor *descriptor,
protobuf_c_boolean
protobuf_c_message_check
(
const
ProtobufCMessage
*
message
)
{
if
(
!
message
||
!
message
->
descriptor
||
message
->
descriptor
->
magic
!=
PROTOBUF_C_MESSAGE_DESCRIPTOR_MAGIC
)
return
FALSE
;
unsigned
f
;
for
(
f
=
0
;
f
<
message
->
descriptor
->
n_fields
;
f
++
)
{
...
...
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