Skip to content

Commit

Permalink
ignore segmentation fault for pngout <= 20150920, resolves #158
Browse files Browse the repository at this point in the history
  • Loading branch information
toy committed Aug 14, 2018
1 parent 7faff35 commit 4eba71f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/image_optim/worker/pngout.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ def optimize(src, dst)
#{dst}
]
execute(:pngout, *args) && optimized?(src, dst)
rescue SignalException => e
raise unless Signal.list.key(e.signo) == 'SEGV'
raise unless resolve_bin!(:pngout).version <= '20150920'
warn "pngout caused Segmentation fault for #{src}"
end
end
end
Expand Down

0 comments on commit 4eba71f

Please sign in to comment.