Skip to content

Crash on jpeg with "Premature end of JPEG file" #1

@ZombieHarvester

Description

@ZombieHarvester

It crashes if jpeg has "Premature end of JPEG file" and because of Task.async the caller app crashes too

13:43:01.184 [error] Task #PID<0.282.0> started from #PID<0.262.0> terminating
** (MatchError) no match of right hand side value: ["Premature"]
    (zbar) lib/zbar.ex:116: anonymous fn/2 in Zbar.parse_symbol/1
    (elixir) lib/enum.ex:1925: Enum."-reduce/3-lists^foldl/2-0-"/3
    (elixir) lib/enum.ex:1314: Enum."-map/2-lists^map/1-0-"/2
    (zbar) lib/zbar.ex:96: Zbar.format_result/1
    (elixir) lib/task/supervised.ex:89: Task.Supervised.do_apply/2
    (elixir) lib/task/supervised.ex:38: Task.Supervised.reply/5
    (stdlib) proc_lib.erl:249: :proc_lib.init_p_do_apply/3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions