> -----Original Message----- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Bruce Richardson > Sent: Friday, October 17, 2014 2:18 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH] test: fbk hash - fix errors with large nb entries > > The four-byte-key (fbk) autotest was allocating the keys to be used for > the test on the stack. When the number of entries in the table was > increased significantly, for example, to test larger hashes by increase the > value of ENTRIES, this array of keys was greater than that > allowed on the stack, and so caused problems, i.e. crashes and core dumps. > > The solution is to have the keys dynamically allocated on the heap using > malloc. Now if ENTRIES is increased and we run out of memory we get an > error message instead of a crash. > > Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch at intel.com>