[Kde-imaging] [Bug 204178] digikam crashes while batch processing and album preview in output directory

Christoph Feck christoph at maxiom.de
Fri Dec 4 03:05:17 CET 2009


https://bugs.kde.org/show_bug.cgi?id=204178





--- Comment #3 from Christoph Feck <christoph maxiom de>  2009-12-04 03:05:00 ---
SVN commit 1058169 by cfeck:

Fix broken reading in inotifyEventReceived

Multiple bugs:
* MAX_PATH is 4096 on linux, but inotify_event needs some bytes as well
* the "pending" variable was incorrectly abused to mean both pending
    bytes in buffer as well as pending bytes in stream
* the offset was not reset to zero when the next chunk was reading
* when an event was larger than what was available in buffer, it was reading
    beyond the buffer boundaries

Many thanks to David for review and help with improving clarity of the code.

David, please test for regressions, maybe add a test which changes
some 1000 files in one go.

CCMAIL:faure at kde.org

CCBUG:165548
CCBUG:173696
CCBUG:175005
CCBUG:198692
CCBUG:204178


 M  +20 -9     kdirwatch.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1058169

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Kde-imaging mailing list