Re: [PATCH 1/2] i386/i386/user_ldt.c: check ldt

2013-11-17 Thread Samuel Thibault
Marin Ramesa, le Sun 17 Nov 2013 07:01:25 +0100, a écrit : > When ldt equals zero, and default branch is taken from the switch > statement, and sel is not equal to zero, comparison results in > a dereference of a null pointer. Avoid this. > > * i386/i386/user_ldt.c (ldt): Check if it equals zero.

[PATCH 1/2] i386/i386/user_ldt.c: check ldt

2013-11-16 Thread Marin Ramesa
When ldt equals zero, and default branch is taken from the switch statement, and sel is not equal to zero, comparison results in a dereference of a null pointer. Avoid this. * i386/i386/user_ldt.c (ldt): Check if it equals zero. --- i386/i386/user_ldt.c | 7 --- 1 file changed, 4 insertions(