commit | b548dd4867d33227a50d6d55e4582c2fe61a66b6 | [log] [tgz] |
---|---|---|
author | Wei Wang <wvw@google.com> | Tue May 03 16:04:24 2022 -0700 |
committer | Wei Wang <wvw@google.com> | Tue May 03 16:10:24 2022 -0700 |
tree | f414fedbc5faa105995f7da69354861f3a970c4e | |
parent | 013204f294f4a1d1eaed19cbe1bbaa83a8b0ba39 [diff] |
logcat: fix infinity loop when mbrtowc returns zero mbrtowc would return 0 if the character converted from s (and stored in pwc if non-null) was the null character. This will happen when the binary buffer corrupted. Test: boot with corrupted pstore and no spinning Bug: 221922191 Change-Id: I841810df82dcee4fb864f15e120822ad810318b1