Skip to content

Never cache previews larger than the max preview #16545

Closed

Description

@oparoz

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

  1. self-assigned this
    on May 29, 2015
  2. added this to the milestone on May 29, 2015
  3. oparoz commented on May 29, 2015

    @oparoz
    ContributorAuthor

    The fix is in #16382

  4. locked as resolved and limited conversation to collaborators on Aug 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions