diff options
author | Andreas Huber <andih@google.com> | 2017-08-17 14:46:49 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2017-08-17 22:26:20 +0000 |
commit | 113e9b1bc146f945274fa5b5088ebf45ea0b37d8 (patch) | |
tree | c5ca7ef20a765b819baa8fad26e8a9ec9303a722 /tools | |
parent | b2688f4a2a25781efbef33a2f4b8bde2592a0a81 (diff) | |
download | android_bionic-113e9b1bc146f945274fa5b5088ebf45ea0b37d8.tar.gz android_bionic-113e9b1bc146f945274fa5b5088ebf45ea0b37d8.tar.bz2 android_bionic-113e9b1bc146f945274fa5b5088ebf45ea0b37d8.zip |
Fix out-of-bounds deque access causing build failure.
Bug: http://b/64802958
Test: built successfully
Change-Id: I8029826f0e4c7f578155d7db545e7786c76a0cdf
Diffstat (limited to 'tools')
-rw-r--r-- | tools/versioner/src/Preprocessor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/versioner/src/Preprocessor.cpp b/tools/versioner/src/Preprocessor.cpp index 757a3922c..a7f289b1f 100644 --- a/tools/versioner/src/Preprocessor.cpp +++ b/tools/versioner/src/Preprocessor.cpp @@ -300,7 +300,7 @@ static void mergeGuards(std::deque<std::string>& file_lines, GuardMap& guard_map }; auto nextCol = [&file_lines, ¤t_location, &nextLine]() { - if (current_location.column == file_lines[current_location.column - 1].length()) { + if (current_location.column == file_lines[current_location.line - 1].length()) { nextLine(); } else { ++current_location.column; |