chaokunyang commented on issue #2391: URL: https://github.com/apache/fory/issues/2391#issuecomment-3047186416
Not exactly, even unsafe classes are passed when deserializeing, fory will still do security check. For example: ```java UnsafeClass o = new UnsafeClass(); fory.serialize(o); // will fail byte[] unsafeBytes = ... fory.deserialize(bytes, UnsafeClass.class); // will fail fory.deserializeJavaObject(bytes, UnsafeClass.class); // will fail ``` But following code can succeed: ```java UnsafeClass o = new UnsafeClass(); fory.registerSerializer(UnsafeClass.class, UnsafeClassSerializer.class) fory.serialize(o); byte[] unsafeBytes = ... fory.deserialize(bytes, UnsafeClass.class); fory.deserializeJavaObject(bytes, UnsafeClass.class); ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
