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++/63497] std::regex can't handle [^class] correctly and cause runtime crash


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

--- Comment #8 from Tim Shen <timshen at gcc dot gnu.org> ---
Author: timshen
Date: Fri Nov 28 06:50:34 2014
New Revision: 218138

URL: https://gcc.gnu.org/viewcvs?rev=218138&root=gcc&view=rev
Log:
    PR libstdc++/63497
    include/bits/regex_executor.tcc (_Executor::_M_dfs,
    _Executor::_M_word_boundary): Avoid dereferecing _M_current at _M_end
    or other invalid position.

Modified:
    branches/gcc-4_9-branch/libstdc++-v3/ChangeLog
    branches/gcc-4_9-branch/libstdc++-v3/include/bits/regex_executor.tcc


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