Closed argiopetech closed 11 years ago
Went with option 2 for the moment. Will be adding option 1 as a new issue in the "| milestone.
sure.
On 7/22/13 3:48 PM, Elliot Robinson wrote:
Went with option #2 https://github.com/argiopetech/base/issues/2 for the moment. Will be adding option #1 https://github.com/argiopetech/base/issues/1 as a new issue in the /|/ milestone.
— Reply to this email directly or view it on GitHub https://github.com/argiopetech/base/issues/36#issuecomment-21370530.
Ted von Hippel
Department of Physical Sciences Embry-Riddle Aeronautical University 600 S. Clyde Morris Boulevard Daytona Beach, FL 32114-3900 386-226-7751
Either:
Check the size of the filter vector every time it is used.(Don't do this).In addition, assert
filters.size > 0
whenever we usefilters.front()
orfilters.back()
Rationale
Loading a photometry file with the wrong filterSet results in a zero-length vector. This causes segfaults when we use .front() without checking size.