mirror of
https://github.com/Interlisp/maiko.git
synced 2026-02-26 08:43:40 +00:00
Note places where undefined behavior is detected by the UB sanitizer
Comments only, no functional changes. modified: src/arith2.c modified: src/arith3.c modified: src/arith4.c modified: src/xc.c
This commit is contained in:
2
src/xc.c
2
src/xc.c
@@ -444,6 +444,7 @@ nextopcode:
|
||||
|
||||
case 021:
|
||||
CASE021:
|
||||
/* UB: left shift of negative value -4 */
|
||||
BIND;
|
||||
case 022:
|
||||
CASE022:
|
||||
@@ -901,6 +902,7 @@ nextopcode:
|
||||
case 0261:
|
||||
CASE261 : {
|
||||
CHECK_INTERRUPT;
|
||||
/* UB: left shift of negative value -1 */
|
||||
PCMACL += (Get_SBYTE_PCMAC1 << 8) | Get_BYTE_PCMAC2;
|
||||
nextop0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user