Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
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
protobuf
Commits
ba800e2e
Commit
ba800e2e
authored
Nov 23, 2015
by
Thomas Van Lenten
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set the stream limit to the length of the data.
- Mark all conformance tests as now passing.
parent
4e338816
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
7 deletions
+2
-7
failure_list_objc.txt
conformance/failure_list_objc.txt
+1
-2
GPBCodedInputStream.m
objectivec/GPBCodedInputStream.m
+1
-5
No files found.
conformance/failure_list_objc.txt
View file @
ba800e2e
ProtobufInput.PrematureEofInDelimitedDataForKnownNonRepeatedValue.MESSAGE
ProtobufInput.PrematureEofInDelimitedDataForKnownRepeatedValue.MESSAGE
# No tests currently failing.
objectivec/GPBCodedInputStream.m
View file @
ba800e2e
...
...
@@ -264,10 +264,6 @@ void GPBCodedInputStreamPopLimit(GPBCodedInputStreamState *state,
}
size_t
GPBCodedInputStreamBytesUntilLimit
(
GPBCodedInputStreamState
*
state
)
{
if
(
state
->
currentLimit
==
SIZE_T_MAX
)
{
return
state
->
currentLimit
;
}
return
state
->
currentLimit
-
state
->
bufferPos
;
}
...
...
@@ -299,7 +295,7 @@ void GPBCodedInputStreamCheckLastTagWas(GPBCodedInputStreamState *state,
buffer_
=
[
data
retain
];
state_
.
bytes
=
(
const
uint8_t
*
)[
data
bytes
];
state_
.
bufferSize
=
[
data
length
];
state_
.
currentLimit
=
NSUIntegerMax
;
state_
.
currentLimit
=
state_
.
bufferSize
;
}
return
self
;
}
...
...
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