diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-10-09 19:10:32 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2013-11-05 12:07:27 +0100 |
commit | 5a1cd742e4737c451d9f8ff13ea5bcacc2e0d0d5 (patch) | |
tree | da56651305daceb056e2c7604d999edd7afeb0d0 | |
parent | 62cf313426a32e3934db10cc8440974e85ce463e (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.cxx | 2 |
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; } |