summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorSergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>2016-06-09 09:42:43 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2016-06-21 12:05:07 +0200
commit4e94250019102442adf00fc4c992e65ebe65e1b1 (patch)
tree5270bc0559e3aebb88fc7bd78c8c8ee7cd94afe4 /examples
parent6723ea61ac6cdcd090c985ee2f0b8cf667ec7596 (diff)
downloaddpdk-4e94250019102442adf00fc4c992e65ebe65e1b1.zip
dpdk-4e94250019102442adf00fc4c992e65ebe65e1b1.tar.gz
dpdk-4e94250019102442adf00fc4c992e65ebe65e1b1.tar.xz
examples/ipsec-secgw: fix stack smashing
Building the application with -O3 and -fstack-protection (default in Ubuntu) results in the following error: *** stack smashing detected ***: ./build/ipsec-secgw terminated The error is caused by storing an 8B value in a 4B variable. Fixes: d299106e8e31 ("examples/ipsec-secgw: add IPsec sample application") Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com> Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/ipsec-secgw/ipsec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/ipsec-secgw/ipsec.c b/examples/ipsec-secgw/ipsec.c
index 4566d38..3ffa77a 100644
--- a/examples/ipsec-secgw/ipsec.c
+++ b/examples/ipsec-secgw/ipsec.c
@@ -46,7 +46,7 @@
static inline int
create_session(struct ipsec_ctx *ipsec_ctx __rte_unused, struct ipsec_sa *sa)
{
- uint32_t cdev_id_qp = 0;
+ unsigned long cdev_id_qp = 0;
int32_t ret;
struct cdev_key key = { 0 };