#58 seg fault in PySelectBuffer_GetItem()

v2.0.1
closed-fixed
nobody
GL (74)
5
2003-04-10
2003-01-22
Anonymous
No

In GL.__initGL___.0101.inc, in function
PySelectBuffer_GetItem() (and
PyFeedbackBuffer_GetItem()), pos[i] is accessed before
i is checked to be in bounds. The initialization of pos
should be moved after the bounds checking.

Discussion

  • Mike C. Fletcher

    • status: open --> closed-fixed
     
  • Mike C. Fletcher

    Logged In: YES
    user_id=34901

    Okay, logically this looks correct. The result seems to
    work, but I don't have an explicit test for when the
    original would provoke an error. If the error still shows
    up then open a new bug report for it (please do so while
    logged in, BTW).

     

Log in to post a comment.