Skip to content

Fix overflow in thumbnail cache housekeeping

g_settings_get_int gives a signed 32 bit integer, so setting the thumbnail cache size to 5120 MB (for example) resulted in an overflow to 1 GB.

Tested on my computer by changing the cache size to a value that would previously overflow and observing the size of ~/.cache/thumbnails.

Merge request reports