Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
XrPath is excessively UB-prone #20
The spec states:
As the author openxrs, I'm trying to develop memory-safe Rust bindings for OpenXR. This means that every API call that isn't explicitly an unsafe escape hatch must not be capable of invoking undefined behavior. The above restrictions make this very difficult, as either anything that operates on an
Most implementations will likely implement
Thanks for filing this! A corresponding issue (number 1149) has been raised within the working group.
I'm personally interested in resolving this apparent weakness, since XrPath atoms are intended to be more lightweight and usable than the path strings they represent, so I would consider it a design flaw if they aren't usable like this in practice.