commit | 80c026f6a3b63cffc67c0eea80def9a1340b6b62 | [log] [tgz] |
---|---|---|
author | Jiakai Zhang <jiakaiz@google.com> | Wed Nov 01 23:42:26 2023 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed Nov 01 23:42:26 2023 +0000 |
tree | fd0261550f2b8ff5593cb76eb6198a6b248b54ce | |
parent | 0d896d82be38a54c868315bfa06928e0aeffc0a4 [diff] | |
parent | ba38e5189e4c4eac9f059a80d599c1164e8140a8 [diff] |
Merge "Enlarge the buffer for otapreopt commands." into main am: d4bdb4b568 am: ba38e5189e Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2812682 Change-Id: Icf2a5c26932029b32a8a176ad920203123611d84 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/cmds/installd/otapreopt_chroot.cpp b/cmds/installd/otapreopt_chroot.cpp index c40caf5..c86adef 100644 --- a/cmds/installd/otapreopt_chroot.cpp +++ b/cmds/installd/otapreopt_chroot.cpp
@@ -353,7 +353,7 @@ // Now go on and read dexopt lines from stdin and pass them on to otapreopt. int count = 1; - for (std::array<char, 1000> linebuf; + for (std::array<char, 10000> linebuf; std::cin.clear(), std::cin.getline(&linebuf[0], linebuf.size()); ++count) { // Subtract one from gcount() since getline() counts the newline. std::string line(&linebuf[0], std::cin.gcount() - 1);