Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue #214, error when converting tad to ad #215

Merged
merged 1 commit into from Feb 12, 2017

Conversation

stevenhwu
Copy link
Collaborator

Output after the fix

$ dng-pileup pTest1.ad -o pTest1a2t.tad
$ dng-pileup pTest1.tad -o pTest1t2a.ad
$ diff -s pTest1.ad pTest1t2a.ad
Files pTest1.ad and pTest1t2a.ad are identical
$ diff -s pTest1.tad pTest1a2t.tad
Files pTest1.tad and pTest1a2t.tad are identical

The segmentation fault was cause at
line 828 in ad.cc -> last_data_[i] = line.data()[i];
Where last_data_ in io::Ad output was not initilised.

Output after the fix

```
$ dng-pileup pTest1.ad -o pTest1a2t.tad
$ dng-pileup pTest1.tad -o pTest1t2a.ad
$ diff -s pTest1.ad pTest1t2a.ad
Files pTest1.ad and pTest1t2a.ad are identical
$ diff -s pTest1.tad pTest1a2t.tad
Files pTest1.tad and pTest1a2t.tad are identical
```

The segmentation fault was cause at
line 828 in `ad.cc` -> `last_data_[i] = line.data()[i];`
Where `last_data_` in `io::Ad output` was not initilised.
@dng-jenkins
Copy link

Can one of the admins verify this patch?

@reedacartwright reedacartwright merged commit 1b41d9e into ultimatesource:develop Feb 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants