This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Rope iterator patch reminder
- From: Jeremy Sawicki <jeremy-gcc at sawicki dot us>
- To: libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Mon, 18 Jun 2018 14:47:32 -0700
- Subject: Rope iterator patch reminder
Last month I sent a patch for a bug in the rope template. I want to
make sure it is not forgotten:
https://gcc.gnu.org/ml/libstdc++/2018-05/msg00115.html
https://gcc.gnu.org/ml/gcc-patches/2018-05/msg01006.html
When an iterator is copied or assigned, the copy can retain pointers to
an internal buffer in the original. When the copy is later
dereferenced, problems ranging from incorrect results to undefined
behavior can occur depending on what has happened to the original in the
meantime. See the test in the patch for a reproducible case.
Please let me know if anything else is needed from me.
Jeremy