| Summary: | communication between digikam and its kioslaves broken if size_t != off_t | ||
|---|---|---|---|
| Product: | [Applications] digikam | Reporter: | Mark Davies <mark> |
| Component: | Database-Albums | Assignee: | Digikam Developers <digikam-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | caulier.gilles |
| Priority: | NOR | ||
| Version First Reported In: | 0.8.1 | ||
| Target Milestone: | --- | ||
| Platform: | NetBSD pkgsrc | ||
| OS: | NetBSD | ||
| Latest Commit: | Version Fixed/Implemented In: | 5.7.0 | |
| Sentry Crash Report: | |||
| Attachments: | Fix wrong type | ||
|
Description
Mark Davies
2006-05-19 02:34:29 UTC
Created attachment 16166 [details]
Fix wrong type
Patch that fixes type mismatch between digikam and its kioslaves.
SVN commit 542353 by cgilles:
digikam from stable: fix wrong cast between digikam album lister and kio slave
CCBUGS: 127634
M +1 -1 albumlister.cpp
--- branches/stable/extragear/graphics/digikam/digikam/albumlister.cpp #542352:542353
@@ -313,7 +313,7 @@
int albumID;
QString name;
QString date;
- size_t size;
+ off_t size;
QSize dims;
ImageInfoList newItemsList;
SVN commit 542354 by cgilles:
digikam from trunk: fix wrong cast between digikam album lister and kio slave
BUG: 127634
M +1 -1 albumlister.cpp
--- trunk/extragear/graphics/digikam/digikam/albumlister.cpp #542353:542354
@@ -323,7 +323,7 @@
int albumID;
QString name;
QString date;
- size_t size;
+ off_t size;
QSize dims;
ImageInfoList newItemsList;
On Friday 19 May 2006 17:35, Gilles Caulier wrote: [bugs.kde.org quoted mail] Unfortunately this is still broken in 0.8.2, but now for the reverse reason. You fixed the above so that albumlister.cpp was expecting an off_t but someone also fixed the other end so that they now pass a size_t: eg. kioslaves/digikamalbums.cpp now has: *os << static_cast<size_t>(stbuf.st_size); so there is still a mismatch in the size of the argument that each side is sending/expecting. cheers mark This problem is relevant of digiKam KIO slaves which are dropped since version 5.0.0 in favor of a multithreaded interface to query the database. It will not reproducible. |