-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Be robust towards input containing null bytes (regression from #98) #131
Be robust towards input containing null bytes (regression from #98) #131
Conversation
@edgar-bonet I can rebase it onto #115 after merge but if acceptible I would prefer the other way around: merging #131 here first and rebasing #115 onto this after. It would reduce the number of things in flight, get the fix out earlier, and I'm imagining the conflict resolution to be easy here, if not I'd definitely volunteer to do the resolution. It would help us separate bugfixes from the refactoring, which I consider a good thing if feasible. |
That's exactly why I would like to merge #115 first. It has been “in flight” for quite a while now. But if you insist in getting this first, OK, go ahead. |
@edgar-bonet you gave #129 to me where order was more important to me, I don't insist, let's do your #115 before my #131 here then, happy to rebase after, it's still a good deal for me 👍 |
37174fa
to
2eff5fe
Compare
> # { python3 -c 'print(chr(0))'; seq 20; } | ./ttyplot
2eff5fe
to
e53366d
Compare
@edgar-bonet rebased and ready for re-review now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason for doing this in handle_input_event
rather than handle_input_data
? I seems to me it belongs to the latter. For instance, handle_input_event
has so far no notion of “valid delimiter”: as far as it is concerned, the buffer is just a chunk of arbitrary binary data. Making sense of those bytes is the job of handle_input_data
.
@edgar-bonet |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The last part is a question of view, the former is a question of performance, at least in part. What do you think?
OK, it does make sense.
Regression from #98, may need coordination with #115.