infoleak fix3 in timer
PATCH 1/1 infoleak fix3 in timer
The stack object “r1” has a total size of 32 bytes. Its field “event” and “val” both contain 4 bytes padding. These 8 bytes padding bytes are sent to user without being initialized.
Signed-off-by Kangjie Lu <[email protected]>
--- sound/core/timer.c | 1 + 1 file changed, 1 insertion(+)
sound/core/timer.c +1 -0
@@ -1268,6 +1268,7 @@ static void snd_timer_user_tinterrupt(struct snd_timer_instance *timeri, }if ((tu->filter & (1 <<SNDRV_TIMER_EVENT_RESOLUTION )) && tu->last_resolution != resolution) { +memset (&r1,0 ,sizeof (r1)); r1.event =SNDRV_TIMER_EVENT_RESOLUTION ; r1.tstamp = tstamp; r1.val = resolution;
Signature · 1 line
1.9.1