Description: certain input to ImpEditEngine::InitScriptTypes can result in never ending loop Steps to Reproduce: 1. cp workdir/LinkTarget/Executable/fftester instdir/program 2. LD_LIBRARY_PATH=`pwd`/instdir/program gdb --args instdir/program/fftester ~/Downloads/clusterfuzz-testcase-minimized-schtmlfuzzer-5752938114383872 sc-html 3. run Actual Results: while (!pScriptScanner->AtEnd() || rTypes.empty()) ... pScriptScanner->Advance(); ... never completes Expected Results: loop ends Reproducible: Always User Profile Reset: No Additional Info: Perhaps an issue since: commit de29bec27e90a7d24a90c6f071e7899abefe683e CommitDate: Thu Dec 19 18:18:30 2024 +0100 tdf#163660 sw: Treat strong CJK inside RTL runs as Asian script
Created attachment 198298 [details] test case
This is a little awkward to reproduce, but was detected in oss-fuzz yesterday
Jonathan Clark committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/1afdda6bca508abe56edf7968677e689b5ee07d4 tdf#164493 Update script change algorithm to always make progress It will be available in 25.8.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Thanks, appreciate it.