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

--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Iain Buclaw <ibuc...@gcc.gnu.org>:

https://gcc.gnu.org/g:30b11d8d1be9c683f1517472c47a3cb69df02c4f

commit r11-8254-g30b11d8d1be9c683f1517472c47a3cb69df02c4f
Author: Iain Buclaw <ibuc...@gdcproject.org>
Date:   Tue Apr 20 02:09:51 2021 +0200

    libphobos: Fix SIGBUS in read_encoded_value_with_base on sparc-sun-solaris
(PR98584)

    Instead of unsafe pointer dereferencing, use memcpy() to read encoded
    values from memory.  The function `read_encoded_value' has been updated
    to accept a ref parameter, this simplifies handling of the pointer to
    memory needing to be read.

    libphobos/ChangeLog:

            PR d/98584
            * libdruntime/gcc/deh.d (scanLSDA): Update calls to read_uleb128
and
            read_encoded_value.
            (actionTableLookup): Update calls to read_sleb128 and
            read_encoded_value_with_base.
            * libdruntime/gcc/unwind/pe.d (read_uleb128): Update signature.
            (read_sleb128): Update signature.
            (read_unaligned): New function.
            (read_encoded_value_with_base): Update signature.  Call
read_unaligned
            instead of unsafe pointer dereferencing.
            (read_encoded_value): Update signature.
  • [Bug d/98584] Many D tests FAIL... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to