xf86-input-mouse: Changes to 'master'

Alan Coopersmith alanc at kemper.freedesktop.org
Mon Dec 5 17:46:16 PST 2011


 src/mouse.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 8bc8502c698115c3f4885ba42e60ede0e681caaa
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Wed Nov 30 19:29:01 2011 -0800

    Avoid NULL pointer dereference in autoProbeMouse if proto == PROT_UNSUP
    
    Error: Null pointer dereference (CWE 476)
       Read from null pointer 'GetProtocol(proto)'
            at line 3477 of src/mouse.c in function 'autoProbeMouse'.
              Function 'GetProtocol' may return constant 'NULL' at line 736, called at line 3477.
              Null pointer introduced at line 736 in function 'GetProtocol'.
    
    We already handle one of the two cases that make GetProtocol return NULL,
    proto == PROTO_UNKNOWN, but not PROT_UNSUP.
    
    [ This bug was found by the Parfait 0.4.2 bug checking tool.
      For more information see http://labs.oracle.com/projects/parfait/ ]
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
    Reviewed-by: Alexandr Shadchin <alexandr.shadchin at gmail.com>



More information about the xorg-commit mailing list