Skip to content

Commit aa95255

Browse files
committed
bug fix
1 parent 9518581 commit aa95255

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/com/alibaba/fastjson2/util/IOUtils.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1717,7 +1717,7 @@ public static short getShortLE(byte[] bytes, int offset) {
17171717

17181718
public static boolean isUTF8BOM(byte[] bytes, int off) {
17191719
// EF BB BF
1720-
return ((getIntLE(bytes, 0)) & 0xFFFFFF) == 0xBFBBEF;
1720+
return ((getIntLE(bytes, off)) & 0xFFFFFF) == 0xBFBBEF;
17211721
}
17221722

17231723
public static int getIntBE(byte[] bytes, int offset) {

0 commit comments

Comments
 (0)