[Libreoffice-commits] core.git: svtools/source
Marc-André Laverdière
marc-andre at atc.tcs.com
Mon Mar 11 02:26:20 PDT 2013
svtools/source/contnr/treelist.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 884e052395e4e28212d8f3744382713405d04eb8
Author: Marc-André Laverdière <marc-andre at atc.tcs.com>
Date: Fri Mar 8 19:22:58 2013 -0500
Documentation to avoid a real use-after-free bug
Change-Id: Ie8a4432b0a70703fbfe92480ad0608b659a887d0
Reviewed-on: https://gerrit.libreoffice.org/2608
Reviewed-by: Fridrich Strba <fridrich at documentfoundation.org>
Tested-by: Fridrich Strba <fridrich at documentfoundation.org>
diff --git a/svtools/source/contnr/treelist.cxx b/svtools/source/contnr/treelist.cxx
index 307d861..55beae9 100644
--- a/svtools/source/contnr/treelist.cxx
+++ b/svtools/source/contnr/treelist.cxx
@@ -1268,6 +1268,9 @@ void SvListView::ModelIsRemoving( SvTreeListEntry* )
void SvListView::ModelHasRemoved( SvTreeListEntry* )
{
+ //WARNING WARNING WARNING
+ //The supplied pointer should have been deleted
+ //before this call. Be careful not to use it!!!
DBG_CHKTHIS(SvListView,0);
}
More information about the Libreoffice-commits
mailing list