-
Notifications
You must be signed in to change notification settings - Fork 29
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
"misaligned pointer dereference" on nightly 2023-04-03 #112
Comments
AFAICT this is caused by rust-lang/rust#98112 This is legit, I can confirm that YARA generates misaligned pointers: logs I added in yara:
debug logs in yara-rust:
This needs to be reported to YARA |
That's weird. I don't event know how you would create a mis-aligned pointer. I am not very familiar with the concept though. In the meantime, should we add |
misaligned pointer access is undefined behavior, so it is very unsafe. The compiler is allowed to consider every access to be aligned, and generate corresponding instructions. On x86/x64, misalignment access is generally only a performance penalty, but some instructions notably SIMD ones do rely on aligned access, and misaligned access can lead to crashes. Other architectures may be even less forgiving, I don't have much experience in those. So for me this is quite a big issue. I'll report this to YARA. In the meantime you probably want to disable the check to make the CI pass I suppose yes :( |
Looks like this was fixed for YARA 4.3: VirusTotal/yara#1724 |
On the github pipeline, I get this error:
I could reproduce it on my own with the last nightly. What should we do? Wait the next nightly, ignore this error, or fix it? I don't find any information about a bug like this in the last nightlies.
The text was updated successfully, but these errors were encountered: