Skip to content

If the value in map is the map's self, the new new JSONObject(map) cause StackOverflowError #701

Closed
@BIngDiAn-s

Description

@BIngDiAn-s

poc as follw:

Map<Object,Object> a=new HashMap<>(); a.put(" ",a); JSONObject A=new JSONObject(a);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions