libreoffice-online/test
Miklos Vajna 33310613cd wsd: fix reading past the end of the clipboard in postProcessCopyPayload()
Add a way to search with an offset in findInVector() and then we can
avoid strstr() which assumes a null-terminated input, which may not be
the case.

	READ of size 55 at 0x606000068a56 thread T8 (docbroker_001)
	    #0 0x55d0d6718a5a in StrstrCheck(void*, char*, char const*, char const*) /home/abuild/rpmbuild/BUILD/llvm-15.0.7.src/build/../projects/compiler-rt/lib/asan/../sanitizer_common/sanitizer_common_interceptors.inc:652:5
	    #1 0x55d0d6718882 in __interceptor_strstr /home/abuild/rpmbuild/BUILD/llvm-15.0.7.src/build/../projects/compiler-rt/lib/asan/../sanitizer_common/sanitizer_common_interceptors.inc:669:5
	    #2 0x55d0d71872c9 in ClientSession::postProcessCopyPayload(std::shared_ptr<Message> const&)::$_4::operator()(std::vector<char, std::allocator<char>>&) const /home/vmiklos/git/collaboraonline/online-23.05-san/wsd/ClientSession.cpp:1631:31

During unit-uno-command.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: Id42669d912bab4746d9f7d99a192c4c3f1d175f7
2024-01-23 08:38:26 +00:00
..
data remove unused code. 2024-01-04 09:26:55 +01:00
traces
.gitignore
countcoolkits.hpp wsd: clean up unused header includes 2024-01-08 08:38:48 +01:00
DeltaTests.cpp spdx: improve machine and human readability of headers. 2023-11-14 19:36:31 +00:00
fakesockettest.cpp spdx: improve machine and human readability of headers. 2023-11-14 19:36:31 +00:00
FileServeWhiteBoxTests.cpp wsd: buy url substitution 2024-01-18 19:25:59 +00:00
helpers.hpp cid#336285 Dereference null return value 2023-12-11 09:25:59 +01:00
httpcrashtest.cpp spdx: improve machine and human readability of headers. 2023-11-14 19:36:31 +00:00
HttpRequestTests.cpp spdx: improve machine and human readability of headers. 2023-11-14 19:36:31 +00:00
HttpTestServer.hpp spdx: improve machine and human readability of headers. 2023-11-14 19:36:31 +00:00
HttpWhiteBoxTests.cpp spdx: improve machine and human readability of headers. 2023-11-14 19:36:31 +00:00
httpwstest.cpp spdx: improve machine and human readability of headers. 2023-11-14 19:36:31 +00:00
integration-http-server.cpp wsd: postmessage substitution 2024-01-18 19:25:59 +00:00
lokassert.hpp spdx: improve machine and human readability of headers. 2023-11-14 19:36:31 +00:00
Makefile.am experimentally bootstrap something using avx2 to generate bitmap 2023-09-25 16:55:04 +01:00
RequestDetailsTests.cpp spdx: improve machine and human readability of headers. 2023-11-14 19:36:31 +00:00
run_unit.sh.in wsd: test: better run_unit.sh 2023-10-24 09:20:32 +02:00
run_unit_standalone.sh.in wsd: test: better run_unit.sh 2023-10-24 09:20:32 +02:00
StringVectorTests.cpp spdx: improve machine and human readability of headers. 2023-11-14 19:36:31 +00:00
test.cpp spdx: improve machine and human readability of headers. 2023-11-14 19:36:31 +00:00
test.hpp wsd: clean up unused header includes 2024-01-08 08:38:48 +01:00
testlog.hpp spdx: improve machine and human readability of headers. 2023-11-14 19:36:31 +00:00
TileCacheTests.cpp spdx: improve machine and human readability of headers. 2023-11-14 19:36:31 +00:00
TileQueueTests.cpp spdx: improve machine and human readability of headers. 2023-11-14 19:36:31 +00:00
UnitAdmin.cpp spdx: improve machine and human readability of headers. 2023-11-14 19:36:31 +00:00
UnitBadDocLoad.cpp wsd: clean up unused header includes 2024-01-08 08:38:48 +01:00
UnitCalc.cpp spdx: improve machine and human readability of headers. 2023-11-14 19:36:31 +00:00
UnitClient.cpp spdx: improve machine and human readability of headers. 2023-11-14 19:36:31 +00:00
UnitClose.cpp wsd: clean up unused header includes 2024-01-08 08:38:48 +01:00
UnitConvert.cpp wsd: clean up unused header includes 2024-01-08 08:38:48 +01:00
UnitCopyPaste.cpp cool#8023 Remove HTML marker in unit-copy-paste 2024-01-19 08:24:57 +01:00
UnitCursor.cpp wsd: clean up unused header includes 2024-01-08 08:38:48 +01:00
UnitEachView.cpp spdx: improve machine and human readability of headers. 2023-11-14 19:36:31 +00:00
UnitFuzz.cpp wsd: clean up unused header includes 2024-01-08 08:38:48 +01:00
UnitHosting.cpp wsd: clean up unused header includes 2024-01-08 08:38:48 +01:00
UnitHTTP.cpp wsd: clean up unused header includes 2024-01-08 08:38:48 +01:00
UnitHTTP.hpp wsd: clean up unused header includes 2024-01-08 08:38:48 +01:00
UnitInsertDelete.cpp wsd: clean up unused header includes 2024-01-08 08:38:48 +01:00
UnitLargePaste.cpp spdx: improve machine and human readability of headers. 2023-11-14 19:36:31 +00:00
UnitLoad.cpp wsd: clean up unused header includes 2024-01-08 08:38:48 +01:00
UnitLoadTorture.cpp spdx: improve machine and human readability of headers. 2023-11-14 19:36:31 +00:00
UnitOAuth.cpp spdx: improve machine and human readability of headers. 2023-11-14 19:36:31 +00:00
UnitPasswordProtected.cpp spdx: improve machine and human readability of headers. 2023-11-14 19:36:31 +00:00
UnitPaste.cpp spdx: improve machine and human readability of headers. 2023-11-14 19:36:31 +00:00
UnitPrefork.cpp spdx: improve machine and human readability of headers. 2023-11-14 19:36:31 +00:00
UnitQuarantine.cpp wsd: clean up unused header includes 2024-01-08 08:38:48 +01:00
UnitRenderingOptions.cpp spdx: improve machine and human readability of headers. 2023-11-14 19:36:31 +00:00
UnitRenderSearchResult.cpp spdx: improve machine and human readability of headers. 2023-11-14 19:36:31 +00:00
UnitRenderShape.cpp spdx: improve machine and human readability of headers. 2023-11-14 19:36:31 +00:00
UnitSession.cpp spdx: improve machine and human readability of headers. 2023-11-14 19:36:31 +00:00
UnitStorage.cpp spdx: improve machine and human readability of headers. 2023-11-14 19:36:31 +00:00
UnitTiffLoad.cpp spdx: improve machine and human readability of headers. 2023-11-14 19:36:31 +00:00
UnitTileCache.cpp spdx: improve machine and human readability of headers. 2023-11-14 19:36:31 +00:00
UnitTimeout.cpp wsd: clean up unused header includes 2024-01-08 08:38:48 +01:00
UnitTyping.cpp spdx: improve machine and human readability of headers. 2023-11-14 19:36:31 +00:00
UnitUNOCommand.cpp test, UnitUNOCommand: also accept json payloads for statechanged 2024-01-09 08:36:29 +00:00
UnitWOPI.cpp spdx: improve machine and human readability of headers. 2023-11-14 19:36:31 +00:00
UnitWOPIAsyncUpload_ModifyClose.cpp wsd: clean up unused header includes 2024-01-08 08:38:48 +01:00
UnitWOPICrashModified.cpp spdx: improve machine and human readability of headers. 2023-11-14 19:36:31 +00:00
UnitWOPIDocumentConflict.cpp wsd: clean up unused header includes 2024-01-08 08:38:48 +01:00
UnitWOPIFailUpload.cpp wsd: clean up unused header includes 2024-01-08 08:38:48 +01:00
UnitWOPIFileUrl.cpp spdx: improve machine and human readability of headers. 2023-11-14 19:36:31 +00:00
UnitWOPIHttpHeaders.cpp spdx: improve machine and human readability of headers. 2023-11-14 19:36:31 +00:00
UnitWOPIHttpRedirect.cpp spdx: improve machine and human readability of headers. 2023-11-14 19:36:31 +00:00
UnitWOPILanguages.cpp wsd: clean up unused header includes 2024-01-08 08:38:48 +01:00
UnitWOPILoadEncoded.cpp spdx: improve machine and human readability of headers. 2023-11-14 19:36:31 +00:00
UnitWOPILock.cpp spdx: improve machine and human readability of headers. 2023-11-14 19:36:31 +00:00
UnitWopiOwnertermination.cpp wsd: clean up unused header includes 2024-01-08 08:38:48 +01:00
UnitWOPIRenameFile.cpp spdx: improve machine and human readability of headers. 2023-11-14 19:36:31 +00:00
UnitWOPISaveAs.cpp spdx: improve machine and human readability of headers. 2023-11-14 19:36:31 +00:00
UnitWOPISaveAsWithEncodedFileName.cpp spdx: improve machine and human readability of headers. 2023-11-14 19:36:31 +00:00
UnitWOPISaveOnExit.cpp wsd: do not upload unmodified document 2024-01-04 05:29:32 -05:00
UnitWOPISlow.cpp spdx: improve machine and human readability of headers. 2023-11-14 19:36:31 +00:00
UnitWOPIStuckSave.cpp wsd: clean up unused header includes 2024-01-08 08:38:48 +01:00
UnitWOPITemplate.cpp spdx: improve machine and human readability of headers. 2023-11-14 19:36:31 +00:00
UnitWOPIVersionRestore.cpp wsd: clean up unused header includes 2024-01-08 08:38:48 +01:00
UnitWOPIWatermark.cpp spdx: improve machine and human readability of headers. 2023-11-14 19:36:31 +00:00
UnitWSDClient.hpp spdx: improve machine and human readability of headers. 2023-11-14 19:36:31 +00:00
UtilTests.cpp spdx: improve machine and human readability of headers. 2023-11-14 19:36:31 +00:00
WhiteBoxTests.cpp wsd: fix reading past the end of the clipboard in postProcessCopyPayload() 2024-01-23 08:38:26 +00:00
WopiProofTests.cpp spdx: improve machine and human readability of headers. 2023-11-20 14:30:02 +00:00
WopiTestServer.hpp spdx: improve machine and human readability of headers. 2023-11-14 19:36:31 +00:00
WOPIUploadConflictCommon.hpp wsd: clean up unused header includes 2024-01-08 08:38:48 +01:00