This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/67554] runtime error in valarray (NULL passed to memcpy)


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

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Mon May 14 21:51:51 2018
New Revision: 260241

URL: https://gcc.gnu.org/viewcvs?rev=260241&root=gcc&view=rev
Log:
PR libstdc++/67554 Do not pass null pointers to memcpy

        PR libstdc++/67554
        * include/bits/valarray_array.h (_Array_copy_ctor<_Tp, true>)
        (_Array_copier<_Tp, true>): Do not pass null pointers to memcpy.

Modified:
    branches/gcc-8-branch/libstdc++-v3/ChangeLog
    branches/gcc-8-branch/libstdc++-v3/include/bits/valarray_array.h

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]