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

Commit dcb26283 authored by Matías Hernández's avatar Matías Hernández
Browse files

Reduce maximum size of strings in AutomaticZenRule

Halving these should approximately double the number of (maliciously crafted) rules that the system can handle.

Fixes: 387498139
Test: atest AutomaticZenRuleTest (preexisting)
Flag: EXEMPT Simple bugfix
Change-Id: Ib62e669192d25fa435f38537b703ba9f6291e0d4
parent 7e6a7855
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -162,7 +162,7 @@ public final class AutomaticZenRule implements Parcelable {
     * both to fields in the rule itself (such as its name) and items with sub-fields.
     * @hide
     */
    public static final int MAX_STRING_LENGTH = 1000;
    public static final int MAX_STRING_LENGTH = 500;

    /**
     * The maximum string length for the trigger description rule, given UI constraints.