mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Java: convert UnsafeDeserialization test to .qlref
This commit is contained in:
@@ -29,7 +29,7 @@ public class ParcelableEntity implements Parcelable {
|
||||
public ParcelableEntity createFromParcel(Parcel parcel) {
|
||||
try {
|
||||
Class clazz = Class.forName(parcel.readString());
|
||||
Object obj = GSON.fromJson(parcel.readString(), clazz); // $unsafeDeserialization
|
||||
Object obj = GSON.fromJson(parcel.readString(), clazz); // $ Alert
|
||||
return new ParcelableEntity(obj);
|
||||
}
|
||||
catch (ClassNotFoundException e) {
|
||||
|
||||
Reference in New Issue
Block a user