procfs: fix mcos%d/PID/auxv size

This commit is contained in:
Yoichi Umezawa
2016-02-08 09:38:27 +09:00
parent d8eeab9b89
commit e601248bdc

View File

@ -620,7 +620,7 @@ void process_procfs_request(unsigned long rarg)
* mcos%d/PID/auxv
*/
if (strcmp(p, "auxv") == 0) {
unsigned int limit = AUXV_LEN * sizeof(int);
unsigned int limit = AUXV_LEN * sizeof(unsigned long);
unsigned int len = r->count;
if (r->offset < limit) {
if (limit < r->offset + r->count) {