swmm-solver allows a variable number of pollutant concentrations to be defined. The swmm_output API is not validating when a pollutant concentration is being requested. This could result in undefined behavior when the index of the pollutant requested exceeds the number of pollutants saved.
swmm-solver allows a variable number of pollutant concentrations to be defined. The swmm_output API is not validating when a pollutant concentration is being requested. This could result in undefined behavior when the index of the pollutant requested exceeds the number of pollutants saved.