public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH v2 0/3] xilinx: board: Improve legacy format handling
@ 2023-01-24 15:19 Michal Simek
  2023-01-24 15:19 ` [PATCH v2 1/3] xilinx: board: Use ETH_ALEN macro for mac address size Michal Simek
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Michal Simek @ 2023-01-24 15:19 UTC (permalink / raw)
  To: u-boot, git

Hi,

fix and improve legacy format handling to cover cases where eeprom content
is corrupted and random. Very likely detection algorithm can be improved -
for example check that mac address is valid, check all strings, etc. but
the aim of this series is to remove all non printable chars without mac
address and never copy more bytes than expected.

Thanks,
Michal

Changes in v2:
- Add +1 for strlcpy because only size -1 is used compare to strncpy.

Michal Simek (3):
  xilinx: board: Use ETH_ALEN macro for mac address size
  xilinx: board: Fix xilinx_eeprom_legacy_cleanup()
  xilinx: board: Update logic in xilinx_read_eeprom_legacy

 board/xilinx/common/board.c | 34 +++++++++++++++++++++-------------
 1 file changed, 21 insertions(+), 13 deletions(-)

-- 
2.36.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-01-27 14:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-24 15:19 [PATCH v2 0/3] xilinx: board: Improve legacy format handling Michal Simek
2023-01-24 15:19 ` [PATCH v2 1/3] xilinx: board: Use ETH_ALEN macro for mac address size Michal Simek
2023-01-24 15:19 ` [PATCH v2 2/3] xilinx: board: Fix xilinx_eeprom_legacy_cleanup() Michal Simek
2023-01-24 15:19 ` [PATCH v2 3/3] xilinx: board: Update logic in xilinx_read_eeprom_legacy Michal Simek
2023-01-27 14:50 ` [PATCH v2 0/3] xilinx: board: Improve legacy format handling Michal Simek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox