Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
mat2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
jvoisin
mat2
Commits
be24c681
Commit
be24c681
authored
5 years ago
by
Julien (jvoisin) Voisin
Browse files
Options
Downloads
Patches
Plain Diff
Improve the reliability of PNG parsing
parent
efa525c1
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!75
Improve the reliability of PNG parsing
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libmat2/images.py
+2
-1
2 additions, 1 deletion
libmat2/images.py
with
2 additions
and
1 deletion
libmat2/images.py
+
2
−
1
View file @
be24c681
...
...
@@ -63,7 +63,8 @@ class PNGParser(exiftool.ExiftoolParser):
try
:
# better fail here than later
cairo
.
ImageSurface
.
create_from_png
(
self
.
filename
)
except
MemoryError
:
# pragma: no cover
except
Exception
:
# pragma: no cover
# Cairo is returning some weird exceptions :/
raise
ValueError
def
remove_all
(
self
)
->
bool
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment