public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/63990] New: regex_search increments a past-the-end iterator
@ 2014-11-20  9:49 kariya_mitsuru at hotmail dot com
  2014-11-21  3:48 ` [Bug libstdc++/63990] " timshen at gcc dot gnu.org
  2023-07-20 11:35 ` redi at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: kariya_mitsuru at hotmail dot com @ 2014-11-20  9:49 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 63990
           Summary: regex_search increments a past-the-end iterator
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: kariya_mitsuru at hotmail dot com

Created attachment 34049
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34049&action=edit
g++ -v

The sample code below is aborted with "attempt to increment a past-the-end
iterator".

=========================================================================
#include <regex>
#include <debug/string>

int main()
{
    __gnu_debug::string s = "a";
    std::regex_search(s.begin(), s.end(), std::regex("b"));
}
=========================================================================
cf. http://melpon.org/wandbox/permlink/2EesivDageAWjAnN


It seems that it always occurs if regex_search is not matched.
It also seems that such an iterator is never accessed.

cf. http://melpon.org/wandbox/permlink/PfGxfu5qjoqaDgEm


I think that it may not cause any problem.
But it is better to fix.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug libstdc++/63990] regex_search increments a past-the-end iterator
  2014-11-20  9:49 [Bug libstdc++/63990] New: regex_search increments a past-the-end iterator kariya_mitsuru at hotmail dot com
@ 2014-11-21  3:48 ` timshen at gcc dot gnu.org
  2023-07-20 11:35 ` redi at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: timshen at gcc dot gnu.org @ 2014-11-21  3:48 UTC (permalink / raw)
  To: gcc-bugs

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

Tim Shen <timshen at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |timshen at gcc dot gnu.org

--- Comment #1 from Tim Shen <timshen at gcc dot gnu.org> ---
https://gcc.gnu.org/ml/libstdc++/2014-11/msg00131.html

This patch will fix this bug.

Thanks for reporting!


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug libstdc++/63990] regex_search increments a past-the-end iterator
  2014-11-20  9:49 [Bug libstdc++/63990] New: regex_search increments a past-the-end iterator kariya_mitsuru at hotmail dot com
  2014-11-21  3:48 ` [Bug libstdc++/63990] " timshen at gcc dot gnu.org
@ 2023-07-20 11:35 ` redi at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: redi at gcc dot gnu.org @ 2023-07-20 11:35 UTC (permalink / raw)
  To: gcc-bugs

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |5.0
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=63920

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Fixed for 5.1 by the patch for PR 63920

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-07-20 11:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-20  9:49 [Bug libstdc++/63990] New: regex_search increments a past-the-end iterator kariya_mitsuru at hotmail dot com
2014-11-21  3:48 ` [Bug libstdc++/63990] " timshen at gcc dot gnu.org
2023-07-20 11:35 ` redi at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).