tracy
tracy copied to clipboard
On Android getlogin can return longer than the reserved user name array
I just ran into an issue where this string overran. getlogin() can return a string longer than _POSIX_LOGIN_NAME_MAX which is used for the user name storage.
Specifically what I did was add android:sharedUserId="android.uid.system" to the manafest element in AndroidManifest.xml.
https://github.com/wolfpld/tracy/blob/e6b9ea460993a6f093283055ef3c98025b19f909/public/client/TracyProfiler.cpp#L613-L620
89f68bab should fix.