summaryrefslogtreecommitdiff
path: root/user/libreoffice/mso-lockfile-utf16le.patch
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2022-11-25 19:29:48 -0600
committerZach van Rijn <me@zv.io>2022-11-25 20:02:32 -0600
commitd7e5a71711acc59d51324fd29340e00b720ba625 (patch)
treec820d9dcf99598f59fc86e07182de201fb704ab6 /user/libreoffice/mso-lockfile-utf16le.patch
parentb5aeea18b753bd91d3967a23d3e65478733da3cc (diff)
downloadpackages-d7e5a71711acc59d51324fd29340e00b720ba625.tar.gz
packages-d7e5a71711acc59d51324fd29340e00b720ba625.tar.bz2
packages-d7e5a71711acc59d51324fd29340e00b720ba625.tar.xz
packages-d7e5a71711acc59d51324fd29340e00b720ba625.zip
user/libreoffice: Move to legacy/
We have decided to not ship LO for RC3 in its current form; bumping it to the latest version will require significant effort to bump Skia, which will be done post-RC3.
Diffstat (limited to 'user/libreoffice/mso-lockfile-utf16le.patch')
-rw-r--r--user/libreoffice/mso-lockfile-utf16le.patch33
1 files changed, 0 insertions, 33 deletions
diff --git a/user/libreoffice/mso-lockfile-utf16le.patch b/user/libreoffice/mso-lockfile-utf16le.patch
deleted file mode 100644
index e71413e0a..000000000
--- a/user/libreoffice/mso-lockfile-utf16le.patch
+++ /dev/null
@@ -1,33 +0,0 @@
---- libreoffice-6.3.1.2/svl/source/misc/msodocumentlockfile.cxx 2019-08-29 16:51:57.000000000 -0500
-+++ libreoffice-6.3.1.2/svl/source/misc/msodocumentlockfile.cxx 2019-09-15 04:19:32.593900468 -0500
-@@ -12,6 +12,7 @@
- #include <algorithm>
- #include <ucbhelper/content.hxx>
- #include <comphelper/processfactory.hxx>
-+#include <oox/helper/helper.hxx>
-
- #include <com/sun/star/io/IOException.hpp>
- #include <com/sun/star/io/XOutputStream.hpp>
-@@ -220,7 +221,7 @@ LockFileEntry MSODocumentLockFile::GetLo
- const int nACPLen = aBuf[0];
- if (nACPLen > 0 && nACPLen <= 52) // skip wrong format
- {
-- const sal_Int8* pBuf = aBuf.getConstArray() + 54;
-+ sal_Int8* pBuf = aBuf.getArray() + 54;
- int nUTF16Len = *pBuf; // try Word position
- // If UTF-16 length is 0x20, then ACP length is also less than maximal, which means
- // that in Word lockfile case, at least two preceding bytes would be zero. Both
-@@ -228,9 +229,12 @@ LockFileEntry MSODocumentLockFile::GetLo
- if (nUTF16Len == 0x20 && (*(pBuf - 1) != 0 || *(pBuf - 2) != 0))
- nUTF16Len = *++pBuf; // use Excel/PowerPoint position
-
-- if (nUTF16Len > 0 && nUTF16Len <= 52) // skip wrong format
-+ if (nUTF16Len > 0 && nUTF16Len <= 52) { // skip wrong format
-+ oox::ByteOrderConverter::convertLittleEndianArray(
-+ reinterpret_cast<sal_Unicode*>(pBuf + 2), nUTF16Len);
- aResult[LockFileComponent::OOOUSERNAME]
- = OUString(reinterpret_cast<const sal_Unicode*>(pBuf + 2), nUTF16Len);
-+ }
- }
- }
- return aResult;