-
Notifications
You must be signed in to change notification settings - Fork 14
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
binary parser unsafely allocates memory. #28
Comments
Fixes tests and potential real life panics, but is not ideal. This is a temporary solution. For #28
Fixes tests and potential real life panics, but is not ideal. This is a temporary solution. For #28
Can't parse Apple MDM signup plists because of this issue. |
@AlexanderMatveev sorry for the late reply! is there any way you can share a problematic plist file that we could take a look at? |
@jessepeterson Unfortunately no, sorry 😔 |
The binary plist tries to allocate a slice of arbitrary size and if it fails it tries to recover. But that doesn't actually work.
Setting 4<<20 (4 * 1024 * 1024) as an arbitrary limit until the binary parser is updated with better logic.
The text was updated successfully, but these errors were encountered: