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

STIX objects with an optional "values" property can cause crash #324

Closed
chisholm opened this issue Jan 23, 2020 · 0 comments · Fixed by #331
Closed

STIX objects with an optional "values" property can cause crash #324

chisholm opened this issue Jan 23, 2020 · 0 comments · Fixed by #331
Milestone

Comments

@chisholm
Copy link
Contributor

There is a workaround which attempts to allow the values attribute on STIX object instances, whose name collides with the standard python Mapping method, to work either as a property access or an invocation of the Mapping method. It was used with the WindowsRegistryKey SCO. Unfortunately, that property is optional and accessed without checking whether it exists, which means when it doesn't exist, invocation as the Mapping method raises a KeyError.

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