Skip to content

core dump when progress callback raises an Exception #103

@mklein-de

Description

@mklein-de

How to reproduce:

!/usr/bin/env python3

import sane

sane.init()

def progress(*args):
    print(args)
    1/0
                                                                                                                                                                  
sane.open(sane.get_devices()[0][0]).scan(progress=progress)

core dump is caused by Py_DECREF(result); with a NULL result

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions