Menu

#155 Rare SEGV (null pointer deref) possible in main()

xfig
closed
nobody
bug (2)
2023-08-25
2023-07-23
No

The XGetWMHints() function is can return NULL under some conditions (see below). But there is no NULL-check before the return value is used, leading to a SEGV (null pointer deref):

For reference, the relevant libx11 source code for XGetWMHints():

Discussion

  • tkl

    tkl - 2023-07-25

    Thank you, mended with commit [ec49cd].

     

    Related

    Commit: [ec49cd]

  • tkl

    tkl - 2023-07-25
    • status: open --> pending
     
  • tkl

    tkl - 2023-08-25
    • status: pending --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB