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

RealmInstantdoes not validate if constructor arguments are valid #1443

Closed
clementetb opened this issue Jul 6, 2023 · 0 comments
Closed

RealmInstantdoes not validate if constructor arguments are valid #1443

clementetb opened this issue Jul 6, 2023 · 0 comments
Assignees

Comments

@clementetb
Copy link
Contributor

clementetb commented Jul 6, 2023

RealmInstant can take arguments with different signs, positive and negative, to generate invalid instances. This can lead to corrupted data.

We should add some checks to prevent instantiating invalid data.

It could be fixed by enabling core assertions as suggested here.

@clementetb clementetb self-assigned this Jul 6, 2023
@clementetb clementetb changed the title RealmInstant to validate that the constructor arguments are valid RealmInstantdoes not validate if constructor arguments are valid Jul 6, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant