Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 225219c3 authored by Pavel Grafov's avatar Pavel Grafov
Browse files

Stopgap fix for stack exhaustion during boot.

Bug: 326662716
Test: TH
Change-Id: I7aecd120efe1c8975577921d46d397e0aa1855e9
parent 27ad7ae6
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -88,6 +88,10 @@ public class PolicySizeVerifier {
     * Throw if Parcelable contains any string that's too long to be serialized.
     */
    public static void enforceMaxParcelableFieldsLength(Parcelable parcelable) {
        // TODO(b/326662716) rework to protect against infinite recursion.
        if (true) {
            return;
        }
        Class<?> clazz = parcelable.getClass();

        Field[] fields = clazz.getDeclaredFields();