Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

JpegImagePlugin.py is not very robust #5581

Open
grinapo opened this issue Jun 28, 2019 · 0 comments
Open

JpegImagePlugin.py is not very robust #5581

grinapo opened this issue Jun 28, 2019 · 0 comments
Labels
A-Media-Repository Uploading, downloading images and video, thumbnailing O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Minor Blocks non-critical functionality, workarounds exist. T-Defect Bugs, crashes, hangs, security vulnerabilities, or other reported issues. z-bug (Deprecated Label) z-p2 (Deprecated Label)

Comments

@grinapo
Copy link

grinapo commented Jun 28, 2019

Description

A bit similar to #3763, a "prefectly valid" "jpeg" (actually a png with a .jpg extension):

2019-06-28 20:59:56,704 - synapse.http.server - 112 - ERROR - POST-110550- Failed handle request via 'UploadResource': <XForwardedForRequest at 0x7fad31da9f28 method='POST' uri='/_matrix/media/v1/upload?filename=9745.jpg' clientproto='HTTP/1.1' site=8008>
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/PIL/JpegImagePlugin.py", line 620, in _save
    rawmode = RAWMODE[im.mode]
KeyError: 'RGBA'
@neilisfragile neilisfragile added z-p2 (Deprecated Label) z-bug (Deprecated Label) labels Jul 3, 2019
@reivilibre reivilibre added A-Media-Repository Uploading, downloading images and video, thumbnailing S-Minor Blocks non-critical functionality, workarounds exist. T-Defect Bugs, crashes, hangs, security vulnerabilities, or other reported issues. O-Uncommon Most users are unlikely to come across this or unexpected workflow labels May 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Media-Repository Uploading, downloading images and video, thumbnailing O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Minor Blocks non-critical functionality, workarounds exist. T-Defect Bugs, crashes, hangs, security vulnerabilities, or other reported issues. z-bug (Deprecated Label) z-p2 (Deprecated Label)
Projects
None yet
Development

No branches or pull requests

3 participants