tracy icon indicating copy to clipboard operation
tracy copied to clipboard

On Android getlogin can return longer than the reserved user name array

Open coodeneko opened this issue 3 months ago • 1 comments

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

coodeneko avatar Nov 13 '25 09:11 coodeneko

89f68bab should fix.

wolfpld avatar Nov 13 '25 11:11 wolfpld