LWN.net Logo

Rooting your own phone: android security

Rooting your own phone: android security

Posted Feb 10, 2009 8:24 UTC (Tue) by nix (subscriber, #2304)
Parent article: Rooting your own phone: android security

GetProcessName() isn't passing an array by value: you can't do that in C,
as arrays decay to pointers in all situations (save sizeof). So this is
passing 'buffer' by reference, and noting for passing humans the maximum
size expected. (The compiler won't check this.)


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds