Skip to content

raw2dng --swap-lines crash with corrupt input file #5

@davidak

Description

@davidak
davidak@Latitude-E5470:~$ raw2dng --swap-lines ~/türkenschanzpark_wien/pictures/20171031_123752/20171031_123752.raw12
Active options:
--swap-lines        : Swap lines in the raw data

/home/davidak/türkenschanzpark_wien/pictures/20171031_123752/20171031_123752.raw12
Resolution  : 4096 x 1539
Frame size  : 9455616 bytes
Bayer Order : GBRG 
Black level : 128
White level : 4095
Line swap...
Segmentation fault (core dumped)
davidak@Latitude-E5470:~$ raw2dng ~/türkenschanzpark_wien/pictures/20171031_123752/20171031_123752.raw12

This is not a problem without --swap-lines:

/home/davidak/türkenschanzpark_wien/pictures/20171031_123752/20171031_123752.raw12
Resolution  : 4096 x 1539
Frame size  : 9455616 bytes
Bayer Order : GBRG 
Black level : 128
White level : 4095
Output file : /home/davidak/türkenschanzpark_wien/pictures/20171031_123752/20171031_123752.DNG
Done.

This is how the picture looks as PNG. You see the lower half is missing.

20171031_123752

Here is the RAW file:
20171031_123752.raw12.zip

cc @alexdu

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