PR26510 UBSAN: tc-z8k.c left shift of negative value
authorAlan Modra <amodra@gmail.com>
Mon, 31 Aug 2020 08:04:39 +0000 (17:34 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 31 Aug 2020 10:58:13 +0000 (20:28 +0930)
commit06de2e0da24a0f0fdc9b38f8308ec909453c4ee8
treed9ba56c1a32ce040a7790a49b36bf42f6cb13f97
parent8e8220177712bff17240687e60b41073bf5d85bb
PR26510 UBSAN: tc-z8k.c left shift of negative value

This also fixes the packing of the nibble buffer, which contains
rubbish in the top 4 bits of each element.

PR 26510
* config/tc-z8k.c (buffer): Use unsigned char.
(apply_fix): Use unsigned char* pointers.
(build_bytes): Likewise and mask nibbles when packing.
gas/ChangeLog
gas/config/tc-z8k.c
This page took 0.024252 seconds and 4 git commands to generate.