summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-10-09 19:10:32 +0200
committerEike Rathke <erack@redhat.com>2013-10-11 16:36:05 +0000
commit5688ab5ba457ea9a50152570d161a11a1d093994 (patch)
tree3fd10fd560e58f829676c7adcc5e31890d37b39f
parentf431f2fbaad8098870b1f9bdb71b6db514d2cbda (diff)
Fail fast at least in debug builds
(cherry picked from commit 57a28dc9556b4e6fff337e0eb9d0d8abc5223161) Conflicts: sal/rtl/strtmpl.cxx Change-Id: I266d5cf5b98827617f7ed65c94a772e28808f386 Reviewed-on: https://gerrit.libreoffice.org/6189 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
-rw-r--r--sal/rtl/source/strtmpl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/rtl/source/strtmpl.cxx b/sal/rtl/source/strtmpl.cxx
index f9d7a5ef59a7..b303e10fc0b9 100644
--- a/sal/rtl/source/strtmpl.cxx
+++ b/sal/rtl/source/strtmpl.cxx
@@ -1198,7 +1198,7 @@ void SAL_CALL IMPL_RTL_STRINGNAME( newFromSubString )( IMPL_RTL_STRINGDATA** ppT
}
if ( count < 0 || beginIndex < 0 || beginIndex + count > pFrom->length )
{
- OSL_FAIL( "Out of bounds substring access" );
+ assert(false);
IMPL_RTL_STRINGNAME( newFromLiteral )( ppThis, "!!br0ken!!", 10, 0 );
return;
}