-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix soundess issue in bones_ecs related to
UntypedResource
acc…
…ess. (#185) Previously it was possible to change the underlying `SchemaBox` for an `UntypedResource` through it's cell, which would allow de-syncing the schema ID of the box, which was relied on for the typed resources store. This would be unsound. To fix it we prevent accessing the `SchemaBox` in an `UntypedResource` directly and only give out atomic wrappers around `SchemaRef` and `SchemaRefMut`. This required switching from `atomic_refcell` to `atomicell`, which had the ability to do unsafe maps on the atomic borrows. Both libraries are fundamentally similar in idea and implementation, and I like the way that `atomicell` allows us to create our own borrowed types, so I think it's a benefit either way.
- Loading branch information
Showing
11 changed files
with
144 additions
and
78 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.