Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 547312 Details for
Bug 666448
net-libs/libnftnl-1.1.1-r1: SIGBUS in test ./nft-expr_quota-test build build still succeeds
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to fix the test issue
0001-fix-unaligned-accesses-in-nftnl_expr_counter_set.patch (text/plain), 935 bytes, created by
Rolf Eike Beer
on 2018-09-19 16:24:08 UTC
(
hide
)
Description:
patch to fix the test issue
Filename:
MIME Type:
Creator:
Rolf Eike Beer
Created:
2018-09-19 16:24:08 UTC
Size:
935 bytes
patch
obsolete
>From 369bb1e3b89011863743b35eb0eed474977a36e7 Mon Sep 17 00:00:00 2001 >From: Rolf Eike Beer <eike@sf-mail.de> >Date: Wed, 19 Sep 2018 08:33:43 +0200 >Subject: [PATCH] fix unaligned accesses in nftnl_expr_counter_set() > >Otherwise nft-expr_quota-test fails with SIGBUS on my Sparc machine. > >Signed-off-by: Rolf Eike Beer <eike@sf-mail.de> >--- > src/expr/counter.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/src/expr/counter.c b/src/expr/counter.c >index 21901e8..74edd41 100644 >--- a/src/expr/counter.c >+++ b/src/expr/counter.c >@@ -35,10 +35,10 @@ nftnl_expr_counter_set(struct nftnl_expr *e, uint16_t type, > > switch(type) { > case NFTNL_EXPR_CTR_BYTES: >- ctr->bytes = *((uint64_t *)data); >+ memcpy(&ctr->bytes, data, sizeof(uint64_t)); > break; > case NFTNL_EXPR_CTR_PACKETS: >- ctr->pkts = *((uint64_t *)data); >+ memcpy(&ctr->pkts, data, sizeof(uint64_t)); > break; > default: > return -1; >-- >2.18.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 666448
:
547140
| 547312