mirror of
https://github.com/revanced/Apktool.git
synced 2024-12-24 11:45:53 +01:00
Fix a bounds check problem in IndentingWriter
This commit is contained in:
parent
fa773b5382
commit
90e6923ae7
@ -120,7 +120,7 @@ public class IndentingWriter extends Writer {
|
||||
int pos = start;
|
||||
while (pos < end) {
|
||||
pos = str.indexOf('\n', start);
|
||||
if (pos == -1) {
|
||||
if (pos == -1 || pos >= end) {
|
||||
writeLine(str, start, end-start);
|
||||
return;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user