Summary: | do not use off_t in header - largefile sensitivity bugs | ||
---|---|---|---|
Product: | [Unmaintained] kdelibs | Reporter: | Guido Draheim <guidod-2003-> |
Component: | general | Assignee: | Stephan Kulow <coolo> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Guido Draheim
2003-01-10 13:20:20 UTC
http://ac-archive.sf.net/largefile With a perl script that shows where off_t-mismatches are. I guess this needs to be fixed asap I've updated the "off_t in headers" description. http://ac-archive.sf.net/largefile/off_t_headers.html The last (fine-print) paragraph does say this: One thing that I do not want to announce all too loud: if you find an improper usage of off_t in an older project, then you can add a quick hack by redefining those functions/structures to use int64_t instead of off_t. This will make structure-mismatch and callframe-mismatch problems to go away - but the seek problems will still exist and they might even hit you harder later since you've covered the usage of seek-offsets in a generic type instead of its dedicated off_t type, and basically forgot about to fix the problem for real. Therefore, if you did not add proper ifdefs to defend against improper usage in largefile-sensitive systems then better make a library typedef like `typedef int64_t mylib_off_t`. A later generation of that software may add proper check routines around this symbol. (remember: UNIX98 systems are _required_ to provide 64bit LFS). Fixed for KDE 3.2 |