Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • briar briar
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 789
    • Issues 789
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 9
    • Merge requests 9
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • briarbriar
  • briarbriar
  • Issues
  • #1468
Closed
Open
Issue created Nov 20, 2018 by Torsten Grote@groteOwner6 of 6 checklist items completed6/6 checklist items

Restrict size of image attachments

We can not process images of arbitrary size, because the device may lack the memory to load the entire image into it or because the maximum texture size is smaller than the image.

  • don't read entire images in memory
  • scale full screen images down to screen size to avoid exceeding max texture size
  • add tests for MarkEnforcingInputStream
  • tests for our own code that handles the various image types and edge cases
  • limit our supported mime types to image/gif, image/jpeg and image/png
  • limit the size of images that can be sent

Subtask of #1237 (closed).

Edited Feb 19, 2019 by Torsten Grote
Assignee
Assign to
Time tracking