Comments (6)
From awalterschulze on June 23, 2014 11:10:54
I agree that ReadMsg should return an error given lenLen <= 0, but my first instinct is that, that is all that needs to change, other than also adding a test.
Maybe I just need to see an example of such a sticky error in the go standard library?
Status: Accepted
from protobuf.
From [email protected] on June 23, 2014 12:10:27
For example http://golang.org/src/pkg/bufio/scan.go#L30 The point of the sticky error is to guard against a buggy caller, that might e.g. log the error, but continue the reading loop. For gogoprotobuf/io, that would mean a stream of gibberish messages, with errors interspersed every now and then.
You could say that the caller must stop reading after the first error, and just leave it at that. I'm ok with that. This bug is really about the fact that you can make varintReader.ReadMsg panic with bad input.
from protobuf.
From awalterschulze on June 24, 2014 01:12:09
I fixed the main issue for now https://code.google.com/p/gogoprotobuf/source/detail?r=d228c1a206c3a756d7ec6cc3579d92d00c35a161 We can revisit the sticky error when I come back from holiday
from protobuf.
From awalterschulze on August 04, 2014 08:02:52
I am happy with the non sticky error.
If you are unhappy please reopen the issue.
Thank you for reporting the issue.
from protobuf.
From awalterschulze on August 04, 2014 08:03:10
Status: Fixed
from protobuf.
From [email protected] on August 04, 2014 08:04:29
I'm fine with this.
from protobuf.
Related Issues (20)
- panic: protobuf tag not enough fields in Empty.state HOT 1
- Enum filling with negative numbers will report an error, is it the Enum that does not support negative numbers?
- License question
- protoreflect
- Vulnerability?
- Panic: invalid Go type HOT 3
- github.com/gogo/protobuf is not installed
- Improper Input Validation in GoGo Protobuf HOT 1
- string time and duration
- oom
- Panic: reflect: Elem of invalid type HOT 1
- How to customize the name of an enumeration value, using the extension `enumvalue_customname ` seems unable to complete.
- m argument not work
- Call command.Generate(req *plugin.CodeGeneratorRequest) twice could cause bug.
- BUG: protoc-gen-gogofast not generate trailing comments
- How to generate parameter "description" in message of proto3 HOT 1
- proto: protect field access with lock to avoid possible data race
- proto: protect field access with lock to avoid possible data race
- Release v1.3.3 - Please please please create it pointing to v1.3.2
- Unsafe type assertion
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from protobuf.