commit | 8fd49a15356db19f7caeefbc0569fb7baa36b257 | [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 23:08:16 2022 +0000 |
tree | 02884f103e63f1d4f371605d372cb8da8d26ea4a | |
parent | 7a0845448f3528f50855a3461f481ab06ccbce89 [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