Skip to content

harden against API misuse #147

Description

@rgerhards

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions