Skip to content

Off by 1 bug in PropertyValueBuffer #1432

Closed
@kpdonn

Description

@kpdonn

Came across this looking at FasterXML/jackson-module-kotlin#46

There is a bug here: https://github.com/FasterXML/jackson-databind/blob/master/src/main/java/com/fasterxml/jackson/databind/deser/impl/PropertyValueBuffer.java#L276-L281

_paramsSeenBig.set(ix); needs to be before if (--_paramsNeeded <= 0) { return true; } otherwise it is skipped for the last element. That code block only gets executed if there are 32+ parameters.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions