Summary: | >2 GB history file tries to overflow lseek | ||
---|---|---|---|
Product: | [Applications] konsole | Reporter: | Luke-Jr <luke-jr+kdebugs> |
Component: | history | Assignee: | Konsole Developer <konsole-devel> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | b7.10110111, bugs.kde.org, Kelk1, simonandric5, whabash090 |
Priority: | NOR | ||
Version: | 16.04.3 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Luke-Jr
2016-12-28 17:11:22 UTC
*** Bug 333472 has been marked as a duplicate of this bug. *** *** Bug 362197 has been marked as a duplicate of this bug. *** known issue - easy fix would be use something other than short int - better would be to handle/limit huge files (In reply to Kurt Hindenburg from comment #3) > better would be to ...limit huge files That wouldn't be a fix. I set unlimited because I actually want unlimited. I will be satisfied with 2^63-1 bytes = 9223372036854775807 (64-bit signed). @Luke-Jr Would that be enough for you? (In reply to Bugs Kde Org from comment #5) > I will be satisfied with 2^63-1 bytes = 9223372036854775807 (64-bit signed). > > @Luke-Jr Would that be enough for you? I was going to say "I don't think more is possible", but then I discovered fpos_t and fgetpos/fsetpos... But yes, 63-bit should be more than enough for a long time. :) Git commit 0ede8bde1f61501b495c88a5fee9f6884e92ad4a by Kurt Hindenburg. Committed on 18/06/2017 at 22:54. Pushed by hindenburg into branch 'master'. Allow unlimited scrollback/history to extend pass 32bit/2GB limit Revamp the file-based "unlimited" scrollback code to remove limits caused by 32bit file offsets. Use Qt's I/O functions which are buffered and use 64bit offsets. Use Qt's map instead of direct mmap to ensure consistency. Prevent wrap-around of readWriteBalance. Patch from FreeBSD committed by rezny https://github.com/freebsd/freebsd-ports-kde/blob/master/x11/konsole/files/patch-src_History.cpp https://github.com/freebsd/freebsd-ports-kde/blob/plasma5/x11/konsole/files/patch-fix_infinite_scrollback M +41 -51 src/History.cpp M +7 -8 src/History.h https://commits.kde.org/konsole/0ede8bde1f61501b495c88a5fee9f6884e92ad4a *** Bug 146483 has been marked as a duplicate of this bug. *** |