]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
fdr: confVal load can be unaligned
authorJustin Viiret <justin.viiret@intel.com>
Thu, 28 Apr 2016 23:16:39 +0000 (09:16 +1000)
committerMatthew Barr <matthew.barr@intel.com>
Wed, 18 May 2016 06:25:35 +0000 (16:25 +1000)
src/fdr/fdr.c

index c955680bf5eb095a7f34ce0f6a5070573c02f70f..bd7dbe83d7b6a34d7fe47101996f6e8789821da9 100644 (file)
@@ -355,7 +355,7 @@ void do_confirm_fdr(u64a *conf, u8 offset, hwlmcb_rv_t *controlVal,
                                ptr_main + byte - a->buf, id, a->ctxt);
            continue;
         }
-        u64a confVal = *(const u64a *)(confLoc + byte - sizeof(u64a));
+        u64a confVal = unaligned_load_u64a(confLoc + byte - sizeof(u64a));
         confWithBit(fdrc, a, ptr_main - a->buf + byte, pullback,
                     control, last_match_id, confVal);
     } while (unlikely(!!*conf));