Fix a bug in the debayer offset code.

Authored by murveit on Mar 7 2020, 5:28 AM.

Description

Fix a bug in the debayer offset code.

Summary:
When X-offset was given in the fits header, the code caused a read past the end of the buffer.
See https://indilib.org/forum/development/6565-bug-in-fitsdata-cpp/50506.html

Test Plan: fit bayer file with XBAYROFF=1 in the header should no longer read past the end of the buffer.

Reviewers: mutlaqja

Reviewed By: mutlaqja

Subscribers: kde-edu

Tags: KDE Edu

Differential Revision: https://phabricator.kde.org/D27907

Details

Committed
mutlaqjaMar 7 2020, 5:28 AM
Reviewer
mutlaqja
Differential Revision
D27907: Fix a bug in the debayer offset code.
Parents
R321:40d0573bd25c: Re-enabled the Jupiter's Moons tool
Branches
Unknown
Tags
Unknown