⬢ DragonFlyBSD Kernel Audit
DF-3614 / build.log
← back to finding ↓ download raw
harness.c: In function 'main':
harness.c:152:21: warning: iteration 32 invokes undefined behavior [-Waggressive-loop-optimizations]
   table->lowSMIO[i] |= voltage_table->smio; /* cpu_to_be32() is a no-op on BE-host;
                     ^~
harness.c:151:2: note: within this loop
  for (i = 0; i < count; i++)
  ^~~
harness.c:186:2: warning: array subscript 32 is above array bounds of 'uint32[32]' {aka 'unsigned int[32]'} [-Warray-bounds]
  printf("    lowSMIO[0]=0x%08x  lowSMIO[31]=0x%08x  lowSMIO[32]=0x%08x (OOB start)\n",
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         a->smc_statetable.lowSMIO[0], a->smc_statetable.lowSMIO[31], a->smc_statetable.lowSMIO[32]);
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
harness.c:217:44: warning: array subscript 32 is above array bounds of 'uint32[32]' {aka 'unsigned int[32]'} [-Warray-bounds]
         (unsigned)a->smc_statetable.lowSMIO[32]);
                   ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
BUILD_RC=0