Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JpegImagePlugin.py is not very robust #5581

Open
matrixbot opened this issue Dec 17, 2023 · 0 comments
Open

JpegImagePlugin.py is not very robust #5581

matrixbot opened this issue Dec 17, 2023 · 0 comments

Comments

@matrixbot
Copy link
Collaborator

matrixbot commented Dec 17, 2023

This issue has been migrated from #5581.


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'
@matrixbot matrixbot changed the title Dummy issue JpegImagePlugin.py is not very robust Dec 21, 2023
@matrixbot matrixbot reopened this Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant