Skip to content

Possible flaw in TokenFilterContext#skipParentChecks() #898

Description

@robotmrv

There is a code in com.fasterxml.jackson.core.filter.TokenFilterContext#skipParentChecks

public void skipParentChecks() {
    _filter = null;
    for (TokenFilterContext ctxt = _parent; ctxt != null; ctxt = ctxt._parent) {
        _parent._filter = null;
    }
}

since _parent is a field looks like there is typo in the loop body
_parent._filter = null; -> ctxt._filter = null;

This is actual for at least 2.13, 2.14, 2.15 branches

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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions