Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(load fallbackvalue): Avoid conversion exception if string is invalid #169

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

Slider0007
Copy link
Owner

std::stod function for string to double conversion of fallbackvalue throws exception if invalid string is detected. --> Not catchable with disabled C++ exception handling

Switch to alternative strtod function to avoid exception and ensure a return value (0) a any case.

@Slider0007 Slider0007 changed the title fix(load fallbackvalue): Avoid stod exception if string is invalid fix(load fallbackvalue): Avoid conversion exception if string is invalid Oct 10, 2024
@Slider0007 Slider0007 merged commit 7a3219c into develop Oct 10, 2024
8 checks passed
@Slider0007 Slider0007 deleted the load-fallbackvalue-fix branch October 10, 2024 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant