Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
add autoType blacklist
Browse files Browse the repository at this point in the history
  • Loading branch information
wenshao committed Oct 4, 2019
1 parent 6681e46 commit 014444e
Showing 1 changed file with 80 additions and 57 deletions.
137 changes: 80 additions & 57 deletions src/main/java/com/alibaba/fastjson/parser/ParserConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -125,63 +125,86 @@ public static ParserConfig getGlobalInstance() {

{
denyHashCodes = new long[]{
0x86fc2bf9beaf7aefL,
0x8eadd40cb2a94443L,
0x8f75f9fa0df03f80L,
0x8fd1960988bce8b4L,
0x9172a53f157930afL,
0x92122d710e364fb8L,
0x94305c26580f73c5L,
0x9437792831df7d3fL,
0xa123a62f93178b20L,
0xaa3daffdb10c4937L,
0xb7e8ed757f5d13a2L,
0xbcdd9dc12766f0ceL,
0xc2eb1e621f439309L,
0xc7599ebfe3e72406L,
0xc963695082fd728eL,
0xd9c9dbf6bbd27bb1L,
0xdf2ddff310cdb375L,
0xe09ae4604842582fL,
0xe603d6a51fad692bL,
0xe9184be55b1d962aL,
0xe9f20bad25f60807L,
0xeea210e8da2ec6e1L,
0xfc773ae20c827691L,
0xfd5bfc610056d720L,
0xffdd1a80f1ed3405L,
0x761619136cc13eL,
0x1603dc147a3e358L,
0x45b11bc78a3aba3L,
0xee6511b66fd5ef0L,
0x10b2bdca849d9b3eL,
0x144277b467723158L,
0x14db2e6fead04af0L,
0x2b3a37467a344cdfL,
0x313bb4abd8d4554cL,
0x332f0b5369a18310L,
0x33c64b921f523f2fL,
0x34a81ee78429fdf1L,
0x398f942e01920cf0L,
0x42d11a560fc9fba9L,
0x440e89208f445fb9L,
0x46c808a4b5841f57L,
0x4a3797b30328202cL,
0x4ba3e254e758d70dL,
0x4ef08c90ff16c675L,
0x4fd10ddc6d13821fL,
0x527db6b46ce3bcbcL,
0x599b5c1213a099acL,
0x5a5bd85c072e5efeL,
0x5d92e6ddde40ed84L,
0x616323f12c2ce25eL,
0x63a220e60a17c7b9L,
0x6749835432e0f0d2L,
0x746bd4a53ec195fbL,
0x74b50bb9260e31ffL,
0x767a586a5107feefL,
0x7aa7ee3627a19cf3L,
0x7bddd363ad3998c6L
0x80D0C70BCC2FEA02L,
0x86FC2BF9BEAF7AEFL,
0x87F52A1B07EA33A6L,
0x8EADD40CB2A94443L,
0x8F75F9FA0DF03F80L,
0x9172A53F157930AFL,
0x92122D710E364FB8L,
0x92122D710E364FB8L,
0x94305C26580F73C5L,
0x9437792831DF7D3FL,
0xA123A62F93178B20L,
0xA85882CE1044C450L,
0xAA3DAFFDB10C4937L,
0xAFFF4C95B99A334DL,
0xB40F341C746EC94FL,
0xB7E8ED757F5D13A2L,
0xBCDD9DC12766F0CEL,
0xC00BE1DEBAF2808BL,
0xC2664D0958ECFE4CL,
0xC7599EBFE3E72406L,
0xC963695082FD728EL,
0xD1EFCDF4B3316D34L,
0xD9C9DBF6BBD27BB1L,
0xDF2DDFF310CDB375L,
0xE09AE4604842582FL,
0xE1919804D5BF468FL,
0xE2EB3AC7E56C467EL,
0xE603D6A51FAD692BL,
0xE9184BE55B1D962AL,
0xE9F20BAD25F60807L,
0xFC773AE20C827691L,
0xFD5BFC610056D720L,
0xFFDD1A80F1ED3405L,
0x10E067CD55C5E5L,
0x761619136CC13EL,
0x3085068CB7201B8L,
0x45B11BC78A3ABA3L,
0xB6E292FA5955ADEL,
0xEE6511B66FD5EF0L,
0x10B2BDCA849D9B3EL,
0x144277B467723158L,
0x14DB2E6FEAD04AF0L,
0x154B6CB22D294CFAL,
0x193B2697EAAED41AL,
0x1E0A8C3358FF3DAEL,
0x24D2F6048FEF4E49L,
0x275D0732B877AF29L,
0x2ADFEFBBFE29D931L,
0x2B3A37467A344CDFL,
0x2D308DBBC851B0D8L,
0x313BB4ABD8D4554CL,
0x332F0B5369A18310L,
0x339A3E0B6BEEBEE9L,
0x33C64B921F523F2FL,
0x34A81EE78429FDF1L,
0x3826F4B2380C8B9BL,
0x398F942E01920CF0L,
0x42D11A560FC9FBA9L,
0x43320DC9D2AE0892L,
0x440E89208F445FB9L,
0x46C808A4B5841F57L,
0x4A3797B30328202CL,
0x4BA3E254E758D70DL,
0x4EF08C90FF16C675L,
0x4FD10DDC6D13821FL,
0x527DB6B46CE3BCBCL,
0x5728504A6D454FFCL,
0x599B5C1213A099ACL,
0x5A5BD85C072E5EFEL,
0x5AB0CB3071AB40D1L,
0x5D74D3E5B9370476L,
0x5D92E6DDDE40ED84L,
0x62DB241274397C34L,
0x63A220E60A17C7B9L,
0x6749835432E0F0D2L,
0x746BD4A53EC195FBL,
0x74B50BB9260E31FFL,
0x75CC60F5871D0FD3L,
0x767A586A5107FEEFL,
0x7AA7EE3627A19CF3L
};

long[] hashCodes = new long[AUTO_TYPE_ACCEPT_LIST.length + 1];
Expand Down

0 comments on commit 014444e

Please sign in to comment.