[Bug other/67446] libiberty sha1.c:324 sanitizer runtime error: load of misaligned address 0x62f00011847e for type 'const sha1_uint32', which requires 4 byte alignment

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Sep 4 07:44:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67446

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Mikhail Maltsev from comment #2)
> BTW, a similar bug reproduces during GCC bootstrap with ubsan:
> 
> /home/jenkins/workspace/ubsan-bootstrap/src/libiberty/md5.c:336:7: runtime
> error: load of misaligned address 0x7fff91f9983a for type 'const
> md5_uint32', which requires 4 byte alignment
> 0x7fff91f9983a: note: pointer points here
>  00 00  f4 48 00 00 00 00 00 00  0a 00 00 00 0e 00 00 00  0d 01 00 00 00 00
> 00 00  07 49 00 00 00 00
>               ^

But those are two different issues.  Also the md5 code explicitly checks to see
if unaligned loads are supported though, it could be better about it.  Please
file this as a separate bug and also note both of these functions really come
from glibc so you might want to file it there (but there might be another
upstream code too).



More information about the Gcc-bugs mailing list