antmicro / zynq-mkbootimage

An open source replacement of the Xilinx bootgen application.
BSD 2-Clause "Simplified" License
93 stars 47 forks source link

arch: common: fix loop index overrunning the interrupt table. #5

Closed velentr closed 6 years ago

velentr commented 6 years ago

GCC may introduce undefined behavior when iterating past the end of an array at higher optimization levels.

tgorochowik commented 6 years ago

Thank you! Merging.