Skip to content

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

Open
mutability wants to merge 1 commit into
MalcolmRobb:masterfrom
mutability:binary-input-offbyone
Open

Fix off-by-one error in Beast-format input.#66
mutability wants to merge 1 commit into
MalcolmRobb:masterfrom
mutability:binary-input-offbyone

Conversation

@mutability

Copy link
Copy Markdown

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
Copy Markdown

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

Development

Successfully merging this pull request may close these issues.

2 participants