OSDN Git Service

Fixed buffer overflow in procrank.
authorAli Utku selen <aliutku.selen@sonyericsson.com>
Thu, 30 Sep 2010 07:41:56 +0000 (09:41 +0200)
committerJohan Redestig <johan.redestig@sonyericsson.com>
Thu, 30 Sep 2010 07:41:56 +0000 (09:41 +0200)
commit44ed630233afb3f334bf6e21f95027a3bf19971e
tree44850eed13dd166f8c345b75c6d6437eb121c4a3
parent220a991976c5a029a6b8463c10040c322218934b
Fixed buffer overflow in procrank.

If there are more than 256 processes in the system procrank
will overflow the procs array. Switched to heap allocation.

Change-Id: I05223333d31f669c6ac87577671e301e6d05c682
procrank/procrank.c