diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-10-09 19:10:32 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-10-09 21:02:11 +0200 |
commit | 57a28dc9556b4e6fff337e0eb9d0d8abc5223161 (patch) | |
tree | 6bb7c140a032dd3ff558b1bb26c2258664b5db78 /sal | |
parent | 34e951bd7284d2e771c279e3adc3899d191fdad0 (diff) |
Fail fast at least in debug builds
Change-Id: I266d5cf5b98827617f7ed65c94a772e28808f386
Diffstat (limited to 'sal')
-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 61103fed7b10..fc618d3f38de 100644 --- a/sal/rtl/strtmpl.cxx +++ b/sal/rtl/strtmpl.cxx @@ -1266,7 +1266,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; } |