Fix out-of-bound loop UB (#218)

* avoid ub

* format

* torch
This commit is contained in:
petrie911
2024-04-20 18:47:46 -03:00
committed by GitHub
parent b3929bea72
commit e3716b5d48
14 changed files with 71 additions and 60 deletions
+5 -3
View File
@@ -9,10 +9,12 @@
#define CHNL_ERR(format) (((format).rxsize & CHNL_ERR_MASK) >> 4)
typedef struct
{
/* 0x0 */ u32 ramarray[15];
typedef union {
struct {
/* 0x00 */ u32 ramarray[15];
/* 0x3C */ u32 pifstatus;
};
/* 0x00 */ u32 raw[16];
} OSPifRam;
typedef struct
+1 -1
View File
@@ -9,7 +9,7 @@
// struct Dummy4 {int x;};
// struct Dummy5 {int x;};
// struct Dummy6 {int x;};
struct Dummy7 {int x;};
// struct Dummy7 {int x;};
struct Dummy8 {int x;};
struct Dummy9 {int x;};
struct Dummy10 {int x;};