fta boughtt this to my attention on #ubuntu-desktop a few days ago too.
I think I can see what is going on now. Here:

free_space = (mount->buf.f_frsize * mount->buf.f_bavail);

free_space is a gint64, and f_frsize and f_bavail are just 32bit
integers, so I think I need to cast these 2 values to this type too to
stop this overflow from occuring.

** Changed in: gnome-settings-daemon (Ubuntu)
       Status: Incomplete => In Progress

** Changed in: gnome-settings-daemon (Ubuntu)
     Assignee: (unassigned) => Chris Coulson (chrisccoulson)

-- 
low disk space popup says "only 898.7 MB disk space remaining" when df says 
4.8GiB
https://bugs.launchpad.net/bugs/408842
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to