-
Notifications
You must be signed in to change notification settings - Fork 45
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
Modified LLVM crashes on nonsensical code #311
Comments
As expected. A big part of the reason that we advertise supporting unaligned loads and stores for CHERI is that we don't have any of the code paths for handling unaligned loads and stores for CHERI operations (and we can't handle them efficiently, because we didn't define CHERI versions of load {word, doubleword} {right, left}. |
This appears to be some strcat specific optimization because if you rename the function it no longer crashes. |
There are at least two problems I can see:
|
Ah, also, this is somehow related to the main problem I've been hitting, which is unaligned capabilities. This fixes my case my making the capabilities aligned... somehow. |
Unaligned capability loads/stores have been handled correctly for quite a long time now, closing as fixed. |
LLVM modified like this:
... crashes on this:
... like this:
Code: https://gist.github.com/trasz/bab434d029c8591da8dc4ec1d9f88605
The text was updated successfully, but these errors were encountered: