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

decoder could read 1 byte beyond data of section 4 #62

Open
vsouvan opened this issue Apr 19, 2020 · 1 comment
Open

decoder could read 1 byte beyond data of section 4 #62

vsouvan opened this issue Apr 19, 2020 · 1 comment

Comments

@vsouvan
Copy link
Collaborator

vsouvan commented Apr 19, 2020

When an invalid BUFR message with a short data section 4. The decoder may read 1 byte beyond data of section4 in memory.
This could result in false value for the last descriptor if section 4 is short by 1 byte only.


Imported from Launchpad using lp2gh.

@vsouvan
Copy link
Collaborator Author

vsouvan commented Apr 19, 2020

(by vanh-souvanlasy)
substracted 1 from test condition before allowing use of next byte.

@vsouvan vsouvan added this to the 0.8.6 milestone Apr 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant