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

harden against API misuse #147

Open
rgerhards opened this issue Nov 11, 2017 · 0 comments
Open

harden against API misuse #147

rgerhards opened this issue Nov 11, 2017 · 0 comments

Comments

@rgerhards
Copy link
Member

see rsyslog/rsyslog#1822

Libfastjson API permits to access sublevel elements inside a tree, but will fail upon free of upper level elements if sub-level have been removed. This has been inherited from json-c and cannot totally be changed. However, it is often source of confusion and results in hard to find bugs.

We should try to harden the code so that it makes it easier to detect and report API misuse.

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

No branches or pull requests

1 participant