cr2hdr Segmentation fault: 11

Issue #2408 resolved
Daniel Fort
created an issue

Under certain condition cr2hdr will seg fault while running Horizontal stripe fix.

Discussion:

http://www.magiclantern.fm/forum/index.php?topic=16166

Comments (3)

  1. Daniel Fort reporter

    The issue happens on random files, apparently more often on soft focus overexposed shots. The cr2hdr default is to run horizontal strip fix but turning this off with the --no-stripe-fix option will prevent the segmentation fault from occurring.

    @David Milligan narrowed down the problem to this:

    int med_delta = median_int_wirth(delta, delta_num);
    

    "median_int_wirth is a macro for computing the median (it's done like this because it is faster that calling a function), it's defined in a separate header file, there must be something wrong with it, it will require further investigation."

  2. Log in to comment