<table><tr><td style="">bruns created this revision.<br />bruns added reviewers: Baloo, michaelh.<br />Restricted Application added projects: Frameworks, Baloo.<br />Restricted Application added a subscriber: Frameworks.<br />bruns requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D12047">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The terms db contains terms, where each terms is stored independently<br />
(terminated with 0), or as a suffix to the previous term (terminated with<br />
1).<br />
In case of corrupted data, the first terminator seen may be a 1, which<br />
leads to a crash when trying to access the previous term with<br />
QVector<>::last().<br />
Show a debug message, to give a hint about the bad data, which can be<br />
fixed by reindexing the relevant file.</p>

<p>BUG: 392878<br />
CCBUG: 392877</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Corrupt the database<br />
Run balooshow -x <affected file(s)></p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R293 Baloo</div></div></div><br /><div><strong>BRANCH</strong><div><div>b392878_avoid_docterms_decode_crash</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D12047">https://phabricator.kde.org/D12047</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/codecs/doctermscodec.cpp<br />
src/engine/documentdb.cpp</div></div></div><br /><div><strong>To: </strong>bruns, Baloo, michaelh<br /><strong>Cc: </strong>Frameworks, ashaposhnikov, michaelh, astippich, spoorun, ngraham, bruns, alexeymin<br /></div>