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++/67214] undefined behaviour in std::num_get::_M_extract_int()


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

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Tue May 23 10:16:08 2017
New Revision: 248362

URL: https://gcc.gnu.org/viewcvs?rev=248362&root=gcc&view=rev
Log:
PR libstdc++/67214 Avoid signed overflow in num_get::_M_extract_int

2017-05-23  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>

        PR libstdc++/67214
        * include/bits/locale_facets.tcc (num_get::_M_extract_int): Add
        explicit conversion to avoid signed overflow.

Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/locale_facets.tcc

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