Menu

#423 glXMakeCurrent segfaults when gc is NULL

closed-fixed
5
2002-04-17
2002-04-17
No

glXMakeCurrent causes a segmentation violation at line
871 in lib/GL/glx/glxext.c if the supplied parameter
'gc' is NULL. Since there are checks elsewhere in the
routine to not dereference gc if it is NULL, I suspect
that the test at line 871 should be changed from
'!gc->isDirect' to '(gc != NULL) && !gc->isDirect'.

Discussion

  • Ian Romanick

    Ian Romanick - 2002-04-17
    • labels: --> Core OpenGL
    • milestone: --> Client Hang/Core Dump
     
  • Brian Paul

    Brian Paul - 2002-04-17

    Logged In: YES
    user_id=983

    Fix checked into the CVS trunk. Thanks.

     
  • Brian Paul

    Brian Paul - 2002-04-17
    • assigned_to: nobody --> brianp
    • status: open --> closed-fixed
     

Log in to post a comment.