-
Notifications
You must be signed in to change notification settings - Fork 538
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
Stack protection disabled in Library Analysis #8053
Comments
@athompson-1 Classic Xamarin.Android outputs no executable code in |
It is .net android. |
@athompson-1: which version of .NET Android? .NET 7 or .NET 8? LLVM Marshal Methods, which is where the A related oddity is that LLVM Marshal Methods already enable stack protection; if you look at e.g.
Note that it includes As with #6258, I don't know what your "Cyber Security Analysis Certification" utility is doing, but I think whatever it's doing could be better. |
OK, that makes sense now :) Your OP indicates that it was for classic Android, hence the misunderstanding. With regards to the report, what @jonpryor said above - whatever utility scanned the code, it works under a wrong assumption that every code must have whatever stack protection markers the utility looks for. However, compilers use heuristics (since stack protection has a runtime cost) to decide whether a function can in fact overflow the stack. They are usually functions which use local (on-stack) arrays and we have none of those. |
Apologies for the confusion. Thank you for the explanation. |
Android application type
Classic Xamarin.Android (MonoAndroid12.0, etc.)
Affected platform version
xamarin-android/d17-5/797e2e1
Description
Hi,
After a security analysis of our application it was noted libxamarnin-app.so has stack protection disabled. This issue is a follow up to issue #6258. Libxamarin-app.so may now contain a .text section with executable code. If there's any insight or suggestions regarding this issue, we would be grateful for your input.

Steps to Reproduce
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: