]> git.ipfire.org Git - thirdparty/coreutils.git/commit
maint: avoid -fsanitize=undefined warning in rand-isaac
authorPádraig Brady <P@draigBrady.com>
Wed, 3 Dec 2014 21:06:11 +0000 (21:06 +0000)
committerPádraig Brady <P@draigBrady.com>
Wed, 3 Dec 2014 23:38:36 +0000 (23:38 +0000)
commit5760532a2dcbad3569928f56a1d5d60d7282087c
treeca8b1343a13f3c53965bbbc302df4dcfb038cfc4
parenta6d979299717e3769debfa5d295cb2934683077b
maint: avoid -fsanitize=undefined warning in rand-isaac

* gl/lib/rand-isaac.c (isaac_refill): readisaac() purposefully passes
unaligned pointers to avoid memory copies.  This is only done on
platforms where this is defined, so avoid the associated
runtime warning generated with -fsanitize=undefined, which is:

  lib/rand-isaac.c:125:182: runtime error: store to misaligned address
  0x63100003d7fd for type 'isaac_word', which requires 8 byte alignment
  0x63100003d7fd: note: pointer points here
   47 ce ed a4 be be be  00 00 00 00 00 00 00 00  ...
               ^
gl/lib/rand-isaac.c