Skip to content

Commit

Permalink
throw error for illegal input
Browse files Browse the repository at this point in the history
  • Loading branch information
wenshao committed Aug 25, 2024
1 parent 5267e3f commit c4f5570
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/src/main/java/com/alibaba/fastjson2/JSONReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -2265,6 +2265,9 @@ public Map<String, Object> readObject() {
name = getNumber();
} else {
name = readFieldNameUnquote();
if (name == null || name.equals("")) {
throw new JSONException(info("illegal input"));
}
}
nextIfMatch(':');
}
Expand Down

0 comments on commit c4f5570

Please sign in to comment.