]> git.droids-corp.org - dpdk.git/commit
app/testpmd: fix stack overflow for EEPROM display
authorSteve Yang <stevex.yang@intel.com>
Thu, 20 Jan 2022 02:59:31 +0000 (02:59 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 3 Feb 2022 13:13:32 +0000 (14:13 +0100)
commitff6db8829678396d2d10b3c29744d36149608982
treef5cdc14fc2346833157b7deb2f7c2edd2b9d9ad6
parent3e02a95bef03d7d7e07d448b0e016eabff57b360
app/testpmd: fix stack overflow for EEPROM display

When the size of EEPROM exceeds the default thread stack size(8MB),
e.g.: 10MB size, it will crash due to stack overflow.

Allocate the data of EPPROM information on the heap.

Fixes: 6b67721dee2a ("app/testpmd: add EEPROM command")
Cc: stable@dpdk.org
Signed-off-by: Steve Yang <stevex.yang@intel.com>
Acked-by: Aman Singh <aman.deep.singh@intel.com>
Tested-by: Ferruh Yigit <ferruh.yigit@intel.com>
app/test-pmd/config.c