D27907: Fix a bug in the debayer offset code.

Hy Murveit <[email protected]>
Newsgroups gmane.comp.kde.education
Message-ID <[email protected]>
murveit created this revision.
murveit added a reviewer: mutlaqja.
Herald added a project: KDE Edu.
Herald added a subscriber: kde-edu.
murveit requested review of this revision.

REVISION 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.

REPOSITORY
  R321 KStars

BRANCH
  debayer-offset (branched from master)

REVISION DETAIL
  https://phabricator.kde.org/D27907

AFFECTED FILES
  kstars/fitsviewer/fitsdata.cpp

To: murveit, mutlaqja
Cc: kde-edu, narvaez, apol
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.