u-boot/board
Heinrich Schuchardt b6d14c52f9 fru: ops: avoid out of bounds access
Building xilinx_zynq_virt_defconfig fails on origin/next as reported by
GCC 10.2 (as provided by Debian Bullseye):

  CC      board/xilinx/common/fru_ops.o
board/xilinx/common/fru_ops.c: In function ‘fru_capture’:
board/xilinx/common/fru_ops.c:173:8:
error: array subscript 284 is outside array bounds of
‘struct fru_table[1]’ [-Werror=array-bounds]
  173 |  limit = data + sizeof(struct fru_board_data);
      |  ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
board/xilinx/common/fru_ops.c:17:18: note: while referencing ‘fru_data’
   17 | struct fru_table fru_data __section(.data);
      |                  ^~~~~~~~

When using sizeof(struct fru_board_data) to find the end of the structure
you should add it to the start of the structure.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
2021-01-05 11:54:53 +01:00
..
AndesTech riscv: ae350: Use fdtdec_get_addr_size_auto_noparent to parse smc reg 2020-07-24 14:56:24 +08:00
Arcturus/ucp1020 powerpc: Remove bi_memstart & bi_memsize assignments in spl.c 2020-08-26 09:19:54 +02:00
BuR Makefile: Rename ALL-y to INPUTS-y 2020-07-28 19:30:39 -06:00
BuS/eb_cpu5282 eb_cpu5282: fix CONFIG_DM_VIDEO build warnings 2020-10-26 20:55:29 +01:00
CZ.NIC
CarMediaLab/flea3
LaCie
Marvell arm: mvebu: Espressobin: Detect presence of emmc at runtime 2020-12-07 07:11:37 +01:00
Seagate
Synology
abilis/tb100
advantech doc: board: imx8qm-rom7720-a1.rst: convert readme to reST 2020-12-07 08:54:20 +01:00
alliedtelesis
altera
amarula/vyasa-rk3288
amazon/kc1 fastboot: Extend fastboot_set_reboot_flag with reboot reason 2020-09-01 14:47:43 +02:00
amlogic board: amlogic: vim3: add support for dynamic PCIe enable 2020-10-05 17:59:45 +02:00
aries/mcvevk
aristainetos imx: aristainetos: enable U-Boot Environment variables protection 2020-12-06 15:07:40 +01:00
armadeus
armltd arm: vexpress: don't reset flags in board_init to avoid losing previous ones 2020-11-19 09:45:49 -05:00
aspeed/evb_ast2500
astro/mcf5373l
atmark-techno/armadillo-800eva
atmel board: atmel: common: introduce at91_set_eth1addr for second interface 2020-09-22 11:27:18 +03:00
avionic-design
bachmann/ot1200
barco
beacon ARM: rmobile: Add Beacon EmbeddedWorks RZG2M Dev Kit 2020-07-25 14:19:26 +02:00
beckhoff/mx53cx9020
birdland/bav335x
bitmain/antminer_s9
bluegiga/apx4devkit
bluewater
bosch am335x, guardian: update the maintainer list 2020-10-12 08:03:38 +05:30
boundary/nitrogen6x
broadcom board: ns3: check bnxt chimp handshake status 2020-09-09 16:57:35 -04:00
bticino/mamoj
buffalo/lsxl
cadence/xtfpga xtensa: Remove local no-op dram_init_banksize() 2020-08-26 09:19:45 +02:00
calao/usb_a9263
cavium/thunderx
ccv/xpress
cei/cei-tk1-som
chipspark/popmetal_rk3288
cirrus/edb93xx
cloudengines/pogo_e02
cobra5272
compal/paz00
compulab
comtrend
congatec x86: congatec: conga-qeval20-qa3-e3845: Remove dead code 2020-09-01 13:38:38 +08:00
coreboot coreboot: make use of smbios parser 2020-11-05 14:58:45 +08:00
corscience/tricorder
cortina
creative/xfi3
cssi
d-link/dns325
davinci/da8xxevm
devboards/dbm-soc1
dfi x86: dfi: dfi-bt700: Remove dead code 2020-09-01 13:38:39 +08:00
dhelectronics ARM: dts: stm32: Add DHCOM based PicoITX board 2020-11-25 10:43:46 +01:00
ea/mx7ulp_com
ebv/socrates
eets/pdu001
efi x86: efi: efi-x86_payload: Remove dead code 2020-09-01 13:38:39 +08:00
egnite/ethernut5
el/el6x
elgin/elgin_rv1108 rockchip: rv1108: use correct API for board callback 2020-09-16 16:31:17 +08:00
embest/mx6boards
emulation riscv: enable SATA disk on QEMU RISC-V 2020-11-17 15:09:16 +08:00
engicam rockchip: Add Engicam PX30.Core C.TOUCH 2.0 2020-10-30 23:31:26 +08:00
esd
firefly rockchip: firefly-rk3288: Fix the code support for SPL_LED 2020-08-21 19:56:19 +08:00
freescale mx6sabresd: Remove unneeded checkboard() 2020-12-26 12:37:07 +01:00
friendlyarm arm: add support for SoC s5p4418 (cpu) / nanopi2 board 2020-07-29 08:43:40 -04:00
gardena
gateworks/gw_ventana
gdsys board: Rename uclass to sysinfo 2020-11-06 10:18:20 +08:00
ge board: ge: bx50v3: cleanup phy config 2020-12-26 14:56:09 +01:00
geekbuying/geekbox
google rockchip: gru: Allow setting up clocks in U-Boot proper 2020-11-13 18:15:08 +08:00
grinn
hardkernel/odroid_go2 rockchip: board: add Hardkernel Odroid Go2 board 2020-07-22 20:21:23 +08:00
highbank
hisilicon
huawei/hg556a
ids/ids8313
imgtec Makefile: Rename ALL-y to INPUTS-y 2020-07-28 19:30:39 -06:00
intel x86: edison: Switch to DM_USB_GADGET 2020-12-16 13:51:24 +08:00
inversepath/usbarmory
iomega/iconnect
is1
isee
k+p arm: Implement show_boot_progress() for imx53's HSC and DDC devices 2020-11-01 15:53:40 +01:00
keymile km/ppc: use Kconfig for MEMTEST configuration 2020-11-19 09:45:49 -05:00
kmc/kzm9g
kobol/helios4
kontron/sl28 board: sl28: add board specific nvm command 2020-10-23 16:52:09 +05:30
kosagi/novena
l+g/vinco
laird
lego/ev3
lg/sniper fastboot: Extend fastboot_set_reboot_flag with reboot reason 2020-09-01 14:47:43 +02:00
liebherr liebherr: Drop duplicate dm.h inclusion 2020-08-03 22:19:54 -04:00
logicpd
maxbcm
mediatek board: mediatek: Add support for UniElec U7623 board 2020-07-29 08:43:40 -04:00
menlo/m53menlo
microchip
mikrotik/crs3xx-98dx3236 arm: mvebu: crs3xx-98dx3236: Add a maintainer 2020-08-06 14:12:14 +02:00
mini-box/picosam9g45
mpc8308_p1m
mqmaker/miqi_rk3288
mscc mscc: Drop dm.h header file 2020-08-03 22:19:54 -04:00
myir/mys_6ulx imx: Add MYiR Tech MYS-6ULX support 2020-08-03 17:03:57 +02:00
netgear
nokia/rx51 Nokia RX-51: Make onenand working 2020-11-15 15:29:40 +05:30
novtech/meerkat96
nvidia
olimex/mx23_olinuxino
opalkelly/zynq
phytec ARM: am335x: Add phyBOARD REGOR support 2020-11-15 15:14:04 +05:30
phytium/durian
pine64
ppcag/bg0900
qca
qemu-mips
qualcomm
radxa
raidsonic/ib62x0
raspberrypi/rpi
renesas Merge branch 'next' 2020-10-05 14:10:59 -04:00
rockchip rockchip: rv1108: use correct API for board callback 2020-09-16 16:31:17 +08:00
ronetix
sagem/f@st1704
samsung samsung: common: remove the duplicated stdio print message 2020-10-22 17:11:29 +09:00
sandbox sandbox: Drop ad-hoc device declarations in SPL 2020-10-29 14:42:17 -06:00
sandisk/sansa_fuze_plus
sbc8349
sbc8548
sbc8641d
schulercontrol/sc_sps_1
seco arm: mx6: Make all i.MX6 SoCs user-selectable 2020-08-25 10:26:14 +02:00
seeed/linkit-smart-7688
sfr/nb4_ser
siemens
sifive/fu540 riscv: sifive/fu540: kconfig: Enable support for Opencores I2C controller 2020-11-28 08:30:41 +01:00
sipeed/maix riscv: Add FPIOA and GPIO support for Kendryte K210 2020-10-08 11:42:36 -04:00
sks-kinkel/sksimx6
socrates
softing
solidrun arm: mvebu: clearfog: don't override set fdtfile env 2020-09-24 10:13:39 +02:00
somlabs/visionsom-6ull
spear
sr1500
st treewide: Update email address Patrick Delaunay and Patrice Chotard 2020-12-09 10:57:50 +01:00
ste/stemmy
sunxi sunxi: allow to use AXP20[39] attached to I2C0 on V3 series 2020-11-17 00:42:21 +00:00
synopsys
sysam
syteco/zmx25
tbs/tbs2910 arm: mx6: Make all i.MX6 SoCs user-selectable 2020-08-25 10:26:14 +02:00
tcl/sl50
technexion pico-imx6ul: convert ethernet function to DM_ETH 2020-08-18 10:10:25 +02:00
technologic
terasic
theadorable
theobroma-systems
ti Merge tag 'ti-v2021.01-rc1' of https://gitlab.denx.de/u-boot/custodians/u-boot-ti 2020-10-12 07:26:57 -04:00
timll
topic/zynq
toradex toradex: hand over maintainership 2020-12-26 14:56:09 +01:00
tplink/wdr4300
tqc arm: mx6: Make all i.MX6 SoCs user-selectable 2020-08-25 10:26:14 +02:00
udoo
vamrs/rock960_rk3399
variscite/dart_6ul arm: dart6ul: read and print SoM info from eeprom on startup 2020-12-26 14:56:09 +01:00
varisys
ve8313
vocore/vocore2
vscom/baltos
wandboard
warp
warp7
work-microwave/work_92105
xen/xenguest_arm64 MAINTAINERS: Add maintainers to XEN section 2020-08-24 14:11:31 -04:00
xes
xilinx fru: ops: avoid out of bounds access 2021-01-05 11:54:53 +01:00
zyxel/nsa310s