diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-10-09 19:10:32 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-10-10 11:35:25 +0000 |
commit | f81ed484ffd443e2593627f3d8d3133161817af2 (patch) | |
tree | 9ecab4f6d5c6aa1739e1848b2d4d7b548926fcbf | |
parent | cfb792b7658b3011eb01bbaf007d9eb9b28eaf58 (diff) |
Fail fast at least in debug builds
Change-Id: I266d5cf5b98827617f7ed65c94a772e28808f386
(cherry picked from commit 57a28dc9556b4e6fff337e0eb9d0d8abc5223161)
Reviewed-on: https://gerrit.libreoffice.org/6186
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
-rw-r--r-- | sal/rtl/strtmpl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/rtl/strtmpl.cxx b/sal/rtl/strtmpl.cxx index dd1effc85eb8..47bbc9b4a4c4 100644 --- a/sal/rtl/strtmpl.cxx +++ b/sal/rtl/strtmpl.cxx @@ -1258,7 +1258,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); // fail fast at least in debug builds IMPL_RTL_STRINGNAME( newFromLiteral )( ppThis, "!!br0ken!!", 10, 0 ); return; } |