commit | 66394b8cecc13e012e0d69873f1bef468217d698 | [log] [tgz] |
---|---|---|
author | Avichal Rakesh <arakesh@google.com> | Thu Nov 11 00:11:58 2021 -0800 |
committer | Avichal Rakesh <arakesh@google.com> | Thu Nov 11 00:11:58 2021 -0800 |
tree | d2eedffda5bd57bf8d2aa7e15b8013b3afa33deb | |
parent | 3a85d2dd9dc4fb151081a81d7ae2f37eaa9a1796 [diff] |
Lock buffer before printing package name String8's buffer is not when calling String8.string() function, and can change if the reference returned by String8.string is kept past one access. Repeated reads to the reference returned by String8.string() can lead to garbage values. This CL locks the buffer of a packageName's String8 object before using it for printing. Bug: 199746421 Test: Manually Tested Change-Id: Ib237f078f2b4b9254208477a56db7a2921d72185