Skip to content

Commit

Permalink
WFC3 aborts when processing IR IMA file with CRCORR=PERFORM (#552)
Browse files Browse the repository at this point in the history
* Fixed the size of a char variable char[9] -> char[12].  Previously, it
did not abort, but the variable was too smal for the string it could hold.

* Updated the version and added comments to the documentation files
with regard to the bug fix - needed to make a char large enough to
accommodate its largest possible string or calwf3 would abort.
  • Loading branch information
mdlpstsci authored Jun 10, 2021
1 parent 5f0f95b commit d395b8b
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 3 deletions.
6 changes: 6 additions & 0 deletions pkg/wfc3/calwf3/Dates
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
27-May-2021 - MDD - Version 3.6.2
- Bug fix to address calwf3.e crashing (Abort trap: 6) when taking an existing *_ima.fits (IR) file
(produced with FLATCORR=PERFORM and CRCORR=OMIT) with CRCORR set to PERFORM. This reentrant
processing is fundamental to being able to remove the variable IR background during the course
of an exposure. Problem: char variable declared too small to hold its largest possible contents.

28-Apr-2021 - MDD - Version 3.6.1
- Bug fix to address a problem detected when processing a Tungsten flat with a high background.
Uninitialized values were used for further computation causing an eventual exception.
Expand Down
6 changes: 6 additions & 0 deletions pkg/wfc3/calwf3/History
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
### 27-May-2021 - MDD - Version 3.6.2
- Bug fix to address calwf3.e crashing (Abort trap: 6) when taking an existing *_ima.fits (IR) file
(produced with FLATCORR=PERFORM and CRCORR=OMIT) with CRCORR set to PERFORM. This reentrant
processing is fundamental to being able to remove the variable IR background during the course
of an exposure. Problem: char variable declared too small to hold its largest possible contents.

### 28-Apr-2021 - MDD - Version 3.6.1
- Bug fix to address a problem detected when processing a Tungsten flat with a high background.
Uninitialized values were used for further computation causing an eventual exception.
Expand Down
6 changes: 6 additions & 0 deletions pkg/wfc3/calwf3/Updates
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
Updates for Version 3.6.2 27-May-2021 - MDD
- Bug fix to address calwf3.e crashing (Abort trap: 6) when taking an existing *_ima.fits (IR) file
(produced with FLATCORR=PERFORM and CRCORR=OMIT) with CRCORR set to PERFORM. This reentrant
processing is fundamental to being able to remove the variable IR background during the course
of an exposure. Problem: char variable declared too small to hold its largest possible contents.

Updates for Version 3.6.1 28-Apr-2021 - MDD
- Bug fix to address a problem detected when processing a Tungsten flat with a high background.
Uninitialized values were used for further computation causing an eventual exception.
Expand Down
4 changes: 2 additions & 2 deletions pkg/wfc3/calwf3/include/wf3version.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/* This string is written to the output primary header as CAL_VER. */


# define WF3_CAL_VER "3.6.1(Apr-28-2021)"
# define WF3_CAL_VER_NUM "3.6.1"
# define WF3_CAL_VER "3.6.2 (May-27-2021)"
# define WF3_CAL_VER_NUM "3.6.2"

#endif /* INCL_WF3VERSION_H */
2 changes: 1 addition & 1 deletion pkg/wfc3/calwf3/wf3ir/groupinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ int getDataUnits (WF3Info *wf3, Hdr *header) {
*/

/* Local variables */
char units[9]; /* BUNIT keyword value */
char units[12]; /* BUNIT keyword value */

/* Read the BUNIT keyword */
units[0] = '\0';
Expand Down

0 comments on commit d395b8b

Please sign in to comment.