| commit | 8a569f1c4decc7440e9dae1af35d7fa59c3b0121 | [log] |
|---|---|---|
| author | Miklos Vajna <vmiklos@suse.cz> | Thu Aug 22 11:04:15 2013 +0200 |
| committer | Miklos Vajna <vmiklos@suse.cz> | Thu Aug 22 11:15:02 2013 +0200 |
| tree | 5ce316929bf4c9334175455ed389e336583eecb0 | |
| parent | a6a04658fb46d9e5ec40438955b777e2eb76b8d2 [diff] |
SwASCWriter: out of bounds substring access Regression from 6e0d836ff120ba292ba52f3623a3dd9be04aefc2, when simply copy-pasting some string to a terminal window, rFltNm is empty. Change-Id: I874e262ef1a3ebb38d90d9ef4f1b8d3457c5daff
diff --git a/sw/source/filter/ascii/wrtasc.cxx b/sw/source/filter/ascii/wrtasc.cxx index 87d1002..a7ee4f1 100644 --- a/sw/source/filter/ascii/wrtasc.cxx +++ b/sw/source/filter/ascii/wrtasc.cxx
@@ -74,7 +74,7 @@ SwASCWriter::SwASCWriter( const OUString& rFltNm ) break; default: if( rFltNm.copy( 4 )=="_DLG" ) if( rFltNm.getLength() >= 4 && rFltNm.copy( 4 )=="_DLG" ) { // use the options aNewOpts = GetAsciiOptions();