#18 GUI crash in Xlib

X11
closed-accepted
Davis
5
2011-02-03
2011-02-03
Nils Labugt
No

dlib GUI applications don't work anymore after I upgraded to Ubuntu 10.10 (AMD64). They consistently crash in base_window::set_title. XwcTextListToTextProperty returns XLocaleNotSupported instead of initializing 'property', but dlib ignores the return value, resulting in a crash in XLib when XSetWMName is called with garbage input or when property.value is XFreed without having been allocated.

Discussion

  • Nils Labugt

    Nils Labugt - 2011-02-03

    Possible bugfix.

     
  • Nils Labugt

    Nils Labugt - 2011-02-03

    The attached patch seems to work for me.

     
  • Davis

    Davis - 2011-02-03
    • status: open --> closed-accepted
     
  • Davis

    Davis - 2011-02-03

    Great, thanks for finding the bug and especially for submitting the patch :) I just applied it to the trunk and checked it into subversion.

    I also run 64bit Ubuntu 10.10 but the bug doesn't happen for me. Go figure.

    Cheers,
    Davis

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks