[frameworks-baloo] [Bug 392878] baloo crashes when reading corrupted data from the Terms db

2018-05-29 Thread Stefan Brüns
https://bugs.kde.org/show_bug.cgi?id=392878

Stefan Brüns  changed:

   What|Removed |Added

  Latest Commit||https://commits.kde.org/bal
   ||oo/e1d1b7e87ff1e8ce6a7e03ec
   ||df2902322cb8624a
 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |FIXED

--- Comment #1 from Stefan Brüns  ---
Git commit e1d1b7e87ff1e8ce6a7e03ecdf2902322cb8624a by Stefan Brüns.
Committed on 29/05/2018 at 23:47.
Pushed by bruns into branch 'master'.

Avoid crash when reading corrupt data from document terms db

Summary:
The terms db contains terms, where each terms is stored independently
(terminated with 0), or as a suffix to the previous term (terminated with
1).
In case of corrupted data, the first terminator seen may be a 1, which
leads to a crash when trying to access the previous term with
QVector<>::last().
Show a debug message, to give a hint about the bad data, which can be
fixed by reindexing the relevant file.
Related: bug 392877

Test Plan:
Corrupt the database
Run balooshow -x 

Reviewers: #baloo, michaelh, ngraham, #frameworks, dhaumann

Reviewed By: dhaumann

Subscribers: dhaumann, kde-frameworks-devel, #frameworks

Tags: #frameworks, #baloo

Differential Revision: https://phabricator.kde.org/D12047

M  +5-0src/codecs/doctermscodec.cpp
M  +5-1src/engine/documentdb.cpp

https://commits.kde.org/baloo/e1d1b7e87ff1e8ce6a7e03ecdf2902322cb8624a

-- 
You are receiving this mail because:
You are watching all bug changes.

[frameworks-baloo] [Bug 392878] baloo crashes when reading corrupted data from the Terms db

2018-04-08 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=392878

Nate Graham  changed:

   What|Removed |Added

 CC||n...@kde.org

-- 
You are receiving this mail because:
You are watching all bug changes.

[frameworks-baloo] [Bug 392878] baloo crashes when reading corrupted data from the Terms db

2018-04-08 Thread Stefan Brüns
https://bugs.kde.org/show_bug.cgi?id=392878

Stefan Brüns  changed:

   What|Removed |Added

   See Also||https://bugs.kde.org/show_b
   ||ug.cgi?id=392877

-- 
You are receiving this mail because:
You are watching all bug changes.