From: Sergio Gonzalez Monroy Date: Thu, 9 Jun 2016 08:42:43 +0000 (+0100) Subject: examples/ipsec-secgw: fix stack smashing X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=4e94250019102442adf00fc4c992e65ebe65e1b1;p=dpdk.git 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 Acked-by: Pablo de Lara --- diff --git a/examples/ipsec-secgw/ipsec.c b/examples/ipsec-secgw/ipsec.c index 4566d38d6d..3ffa77a889 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 };