This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "".
The branch, master has been updated via c7014b4848c276c17dcdddab103ce88b3eb29235 (commit) from 503708078bf6ab9228d23ad65660b42248600c2d (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- commit c7014b4848c276c17dcdddab103ce88b3eb29235 Author: Matias Elo matias.elo@nokia.com Date: Fri Mar 31 17:40:13 2017 +0300
helper: iplookuptable: fix prefix_entry_t member order
Depending on the alignment/padding odph_iplookup_table_put_value() could end up overwriting the wrong fields in prefix_entry_t. Fix this by reverting the order of prefix_entry_t members.
Fixes https://bugs.linaro.org/show_bug.cgi?id=2910
Signed-off-by: Matias Elo matias.elo@nokia.com Reviewed-by: Bill Fischofer bill.fischofer@linaro.org Signed-off-by: Maxim Uvarov maxim.uvarov@linaro.org
diff --git a/helper/iplookuptable.c b/helper/iplookuptable.c index aae2199..37d31e3 100644 --- a/helper/iplookuptable.c +++ b/helper/iplookuptable.c @@ -42,6 +42,10 @@ */ typedef struct { union { + odp_buffer_t nexthop; + void *ptr; + }; + union { uint8_t u8; struct { #if ODP_BYTE_ORDER == ODP_BIG_ENDIAN @@ -53,10 +57,6 @@ typedef struct { #endif }; }; - union { - odp_buffer_t nexthop; - void *ptr; - }; } prefix_entry_t;
#define ENTRY_SIZE (sizeof(prefix_entry_t) + sizeof(odp_buffer_t))
-----------------------------------------------------------------------
Summary of changes: helper/iplookuptable.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
hooks/post-receive