commit | f08b12e8085b6d0db039198e08af3898bb6e8598 | [log] [tgz] |
---|---|---|
author | Wilco Dijkstra <wilco.dijkstra@arm.com> | Mon Jun 01 13:59:35 2020 +0100 |
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | Mon Jun 01 13:59:35 2020 +0100 |
tree | 37d1060d9fd75f7b3d4425d4e8e406f462c50529 | |
parent | ef907c7a799ae7fd8662fb56a6c5e9437508f645 [diff] |
string: Fix issue in strcmp-mte NUL check Improve the previous fix - if a string is immediately preceded by a NUL byte and the first byte is 0x1, it may be confused by the NUL check as a NUL byte. Instead of removing bytes outside the string via a shift, force them to be non-NUL.