Page MenuHomeHEPForge

Unnoticed failure in conversion of parameters to double
Open, NormalPublic

Description

When reading decay files, std::strtod function is used to convert parameters from string to doubles. The function returns 0 if conversion cannot be performed, which has nasty side effect when dash is used instead of minus sign in which case conversion will fail, but often people will not spot issue in decay file itself and parameter will have different value than intended. Need to add check at each instance and deal with errors if conversion cannot happen in place where it should succeed.

Event Timeline

kreps triaged this task as Normal priority.Jul 6 2023, 9:34 AM
kreps created this task.
kreps created this object with visibility "Public (No Login Required)".
kreps created this object with edit policy "Restricted Project (Project)".
jback edited subscribers, added: Restricted Project; removed: kreps, tlatham.Jul 10 2023, 4:02 PM