Bug 381027

Summary: Crash when directory size is zero
Product: [Applications] filelight Reporter: asl97
Component: generalAssignee: Martin Sandsmark <martin.sandsmark>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: lueck
Priority: NOR    
Version First Reported In: 1.21   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description asl97 2017-06-09 19:00:44 UTC
Filelight crash when directory size is zero.

Test case:
```
mkdir -p /tmp/bugs/this/is/a/test
touch /tmp/bugs/this/is/a/test/file
filelight /tmp/bugs/this/is/a/test
```

Result in `Floating point exception (core dumped)`
Comment 1 Burkhard Lück 2017-06-10 06:21:14 UTC
Ubuntu 16.10
$ filelight --version
filelight 1.21

filelight master build from sources
KDE Frameworks 5.35.0
Qt 5.7.0 (built against 5.7.0)

I can not reproduce the crash, the directory is properly opened by filelight
Comment 2 asl97 2017-06-10 08:00:07 UTC
Seem to have been fixed by https://cgit.kde.org/filelight.git/commit/?id=ffe38edcff1094a617f6cb00da0610b5834e6208

Which isn't part of the Applications/16.12 branch (which is also 1.21).

branch commit log: https://cgit.kde.org/filelight.git/log/?h=Applications/16.12