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: builtin type don't convert from_string when value is integer #259

Merged
merged 1 commit into from
Jun 19, 2023

Conversation

zhongwencool
Copy link
Member

@zhongwencool zhongwencool commented Jun 16, 2023

When an integer value is read from a hocon file or default value, typerelf:from_string conversion is not executed, resulting in an unchecked boundary condition.
More detail see hocon_schema_builtin_tests.erl's to_ip_port/1 function.

@kjellwinblad kjellwinblad self-requested a review June 17, 2023 06:47
Copy link
Contributor

@kjellwinblad kjellwinblad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not a hocon expert but it looks good to me.

@zhongwencool zhongwencool merged commit 0c90b33 into master Jun 19, 2023
4 checks passed
@zhongwencool zhongwencool deleted the fix-default-integer-not-from-string branch June 19, 2023 01:27
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.

None yet

2 participants