[Xcb] [PATCH:xcb-util] Make sure wm_class name strings are null-terminated

Arnaud Fontaine arnaud at andesi.org
Tue Jun 15 07:29:55 PDT 2010


Hi,

    >> I  see ICCCM claims  WM_CLASS are always null-terminated,  when I
    >> found they weren't always in practice.

    > After digging into this more,  I'm not sure if any patch is needed
    > here.   It depends  on whether  you want to  expose bugs  in other
    > people's code, or protect API callers from them.

IMO, a patch isn't  needed because I don't think this is  a good idea to
make an heap allocation just to workaround buggy code. Maybe an assert()
would be enough?

--
Arnaud Fontaine (arnau)


More information about the Xcb mailing list