Skip to content
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

Fix off-by-one error in Beast-format input. #66

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mutability
Copy link

This would mangle messages if the first byte of a message ended up
as the last byte returned by a read() call - it would read beyond
the end of the buffer, decide the message was damaged, and then run
off into the message data looking for a new delimiter. Sometimes
that would work (only dropping one message), but sometimes it would
run into data that happened to look like a message start but
actually wasn't, and then try to interpret that, leading to completely
bogus message data being read.

(cherry picked from commit e7d7fd5)

This would mangle messages if the first byte of a message ended up
as the last byte returned by a read() call - it would read beyond
the end of the buffer, decide the message was damaged, and then run
off into the message data looking for a new delimiter. Sometimes
that would work (only dropping one message), but sometimes it would
run into data that happened to look like a message start but
actually wasn't, and then try to interpret that, leading to completely
bogus message data being read.

(cherry picked from commit e7d7fd5)
@steel101
Copy link

just inserted the code in to my fork it has this and plane count and plane count in title and signal and settings page and lots more including almost all pull request here demo at http://bitropy.net:8080

devbender pushed a commit to devbender/dump1090 that referenced this pull request Dec 1, 2020
Add commented-out HTTPS configuration section
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants