Re: [PATCH] playing ff effect with code greater then FF_EFFECTS can cause buffer overflow

2007-05-02 Thread Jan Kratochvil
@atrey.karlin.mff.cuni.cz, [EMAIL PROTECTED] Subject: [PATCH] playing ff effect with code greater then FF_EFFECTS can cause buffer overflow Hi, i found a bug in ff-memless.c so i fixed it. As you can see I am doing check if effect_id is less then 0, but I am aware that it is useless because

Re: [PATCH] playing ff effect with code greater then FF_EFFECTS can cause buffer overflow

2007-05-01 Thread Jiri Kosina
On Wed, 2 May 2007, Jan Kratochvil wrote: i found a bug in ff-memless.c so i fixed it. As you can see I am doing check if effect_id is less then 0, but I am aware that it is useless because effect_id is actually input_event.code which is __u16, but on the other side as long as the

Re: [PATCH] playing ff effect with code greater then FF_EFFECTS can cause buffer overflow

2007-05-01 Thread Dmitry Torokhov
effect with code greater then FF_EFFECTS can cause buffer overflow Hi, i found a bug in ff-memless.c so i fixed it. As you can see I am doing check if effect_id is less then 0, but I am aware that it is useless because effect_id is actually input_event.code which is __u16

Re: [PATCH] playing ff effect with code greater then FF_EFFECTS can cause buffer overflow

2007-05-01 Thread Dmitry Torokhov
On Tuesday 01 May 2007 19:20, Jiri Kosina wrote: On Wed, 2 May 2007, Jan Kratochvil wrote: i found a bug in ff-memless.c so i fixed it. As you can see I am doing check if effect_id is less then 0, but I am aware that it is useless because effect_id is actually input_event.code which