On Sun, Nov 11, 2007 at 11:29:59AM +0800, Miao Xie wrote:
>on 2007-11-8 20:11 WANG Cong wrote:
>>On Thu, Nov 08, 2007 at 07:47:41PM +0800, WANG Cong wrote:
>>>Yes, snprintf is safer than sprintf. But here, the 'count' will be
>>>mis-pointed when snprintf returns no less than PAGE_SIZE (what you
on 2007-11-8 20:11 WANG Cong wrote:
On Thu, Nov 08, 2007 at 07:47:41PM +0800, WANG Cong wrote:
Yes, snprintf is safer than sprintf. But here, the 'count' will be
mis-pointed when snprintf returns no less than PAGE_SIZE (what you called
overflow). So you may also need:
if
on 2007-11-8 20:11 WANG Cong wrote:
On Thu, Nov 08, 2007 at 07:47:41PM +0800, WANG Cong wrote:
Yes, snprintf is safer than sprintf. But here, the 'count' will be
mis-pointed when snprintf returns no less than PAGE_SIZE (what you called
overflow). So you may also need:
if
On Sun, Nov 11, 2007 at 11:29:59AM +0800, Miao Xie wrote:
on 2007-11-8 20:11 WANG Cong wrote:
On Thu, Nov 08, 2007 at 07:47:41PM +0800, WANG Cong wrote:
Yes, snprintf is safer than sprintf. But here, the 'count' will be
mis-pointed when snprintf returns no less than PAGE_SIZE (what you called
On Thu, Nov 08, 2007 at 07:47:41PM +0800, WANG Cong wrote:
>On Thu, Nov 08, 2007 at 06:53:40PM +0800, Miao Xie wrote:
>>Hi,every one.
>> I found that there is a buffer overflow problem in the following code.
>>
>>Version: 2.6.24-rc2,
>>File: kernel/time/clocksource.c:417-432
On Thu, Nov 08, 2007 at 06:53:40PM +0800, Miao Xie wrote:
>Hi,every one.
> I found that there is a buffer overflow problem in the following code.
>
>Version: 2.6.24-rc2,
>File: kernel/time/clocksource.c:417-432
>
Hi,every one.
I found that there is a buffer overflow problem in the following code.
Version:2.6.24-rc2,
File: kernel/time/clocksource.c:417-432
static ssize_t
sysfs_show_available_clocksources(struct
On Thu, Nov 08, 2007 at 06:53:40PM +0800, Miao Xie wrote:
Hi,every one.
I found that there is a buffer overflow problem in the following code.
Version: 2.6.24-rc2,
File: kernel/time/clocksource.c:417-432
static
On Thu, Nov 08, 2007 at 07:47:41PM +0800, WANG Cong wrote:
On Thu, Nov 08, 2007 at 06:53:40PM +0800, Miao Xie wrote:
Hi,every one.
I found that there is a buffer overflow problem in the following code.
Version: 2.6.24-rc2,
File: kernel/time/clocksource.c:417-432
Hi,every one.
I found that there is a buffer overflow problem in the following code.
Version:2.6.24-rc2,
File: kernel/time/clocksource.c:417-432
static ssize_t
sysfs_show_available_clocksources(struct
10 matches
Mail list logo