File tree 1 file changed +7
-3
lines changed
brut.apktool/apktool-lib/src/main/java/brut/androlib/meta 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 17
17
package brut .androlib .meta ;
18
18
19
19
import org .yaml .snakeyaml .DumperOptions ;
20
+ import org .yaml .snakeyaml .LoaderOptions ;
20
21
import org .yaml .snakeyaml .Yaml ;
21
22
import org .yaml .snakeyaml .introspector .PropertyUtils ;
22
23
@@ -40,14 +41,17 @@ public class MetaInfo {
40
41
public Collection <String > doNotCompress ;
41
42
42
43
private static Yaml getYaml () {
43
- DumperOptions options = new DumperOptions ();
44
- options .setDefaultFlowStyle (DumperOptions .FlowStyle .BLOCK );
44
+ DumperOptions dumpOptions = new DumperOptions ();
45
+ dumpOptions .setDefaultFlowStyle (DumperOptions .FlowStyle .BLOCK );
45
46
46
47
EscapedStringRepresenter representer = new EscapedStringRepresenter ();
47
48
PropertyUtils propertyUtils = representer .getPropertyUtils ();
48
49
propertyUtils .setSkipMissingProperties (true );
49
50
50
- return new Yaml (new ClassSafeConstructor (), representer , options );
51
+ LoaderOptions loaderOptions = new LoaderOptions ();
52
+ loaderOptions .setCodePointLimit (10 * 1024 * 1024 ); // 10mb
53
+
54
+ return new Yaml (new ClassSafeConstructor (), representer , dumpOptions , loaderOptions );
51
55
}
52
56
53
57
public void save (Writer output ) {
You can’t perform that action at this time.
0 commit comments