Re: [PATCH -mm] Don't truncate /proc/PID/environ at 4096 characters

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: James Pearson <james-p@...>, <linux-kernel@...>
Cc: <aarapov@...>, <akpm@...>, <hpa@...>
Date: Thursday, September 20, 2007 - 9:56 pm

2007/9/19, James Pearson <james-p@moving-picture.com>:
                                                                ^^^^
shouldn't you only copy min(count,retval) bytes? otherwise you could
write beyond the users buffer "buf", right?

Arvin
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH -mm] Don't truncate /proc/PID/environ at 4096 cha..., Arvin Moezzi, (Thu Sep 20, 9:56 pm)