> -----Original Message----- > From: Jerin Jacob [mailto:[email protected]] > Sent: Wednesday, May 16, 2018 1:28 PM > To: [email protected] > Cc: De Lara Guarch, Pablo <[email protected]>; > [email protected]; Jerin Jacob <[email protected]>; > Doherty, Declan <[email protected]>; [email protected]; > [email protected] > Subject: [dpdk-dev] [PATCH v2 2/2] app/crypto-perf: fix memcpy source > > Since arm64 was using plain memcpy for rte_memcpy, gcc 8.1, could detect size > was more than source address range. In this case, the source was wrong. > > /export/dpdk.org/test/test/test_cryptodev.c: In function > 'test_multi_session_random_usage': > /export/dpdk.org/build/include/rte_memcpy_64.h:364:29: error: 'memcpy' > forming offset [113, 184] is out of the bounds [0, 112] of object > 'testsuite_params' with type 'struct crypto_testsuite_params' > [-Werror=array-bounds] > #define rte_memcpy(d, s, n) memcpy((d), (s), (n)) > ^~~~~~~~~~~~~~~~~~~~~ > /export/dpdk.org/test/test/test_cryptodev.c:6618:3: note: in expansion of > macro 'rte_memcpy' > rte_memcpy(&ut_paramz[i].ut_params, &testsuite_params, > ^~~~~~~~~~ > /export/dpdk.org/test/test/test_cryptodev.c:140:39: note: > 'testsuite_params' declared here > static struct crypto_testsuite_params testsuite_params = { NULL }; > > Fixes: ffbe3be0d4b5 ("app/test: add libcrypto") > > Cc: [email protected] > Cc: [email protected] > Cc: [email protected] > Cc: [email protected] > > Suggested-by: Pablo de Lara <[email protected]> > Signed-off-by: Jerin Jacob <[email protected]>
Applied to dpdk-next-crypto. Thanks, Pablo

