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

ObjectIdentifer encoded by 64 bit libember or EmberPlusViewer can segfault 32 bit libember decoder #102

Closed
benoitquiniou opened this issue Nov 14, 2019 · 1 comment

Comments

@benoitquiniou
Copy link
Contributor

Have a 64 bit application communicates with a 32 bit application (doesn't matter who is provider and consumer, the bug was found with a 32 bit provider, 64 bit consumer).
Have an element in the tree having number 0xdd010000.
The 64 bit application will encode it like this:

0xff 0xff 0xff 0xff 0xff 0xfd 0xe8 0x84 0x80 0x0

which the 32 bit application will not be able to decode. Instead it will segfault in libember::dom::AsyncBerReader::decodeNode.

@benoitquiniou
Copy link
Contributor Author

Fixed by commit 5aaacf5

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