You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Never cache previews larger than the max preview #16545
The Preview class stores the same file over and over if it can't match the maxX and maxY dimensions to a cached thumbnail. (maxX and maxY define a rectangle in which the preview must fit).
This won't be completely fixed until #8196 is implemented, but it should never happen if the asked dimensions are larger than the max preview.
What's happening is that the max preview is stored several times, using a different name and this fills the cache (an attacker can exhaust the available free space) and wastes resources.
Activity
oparoz commentedon May 29, 2015
The fix is in #16382