Comment 83 for bug 372103

Revision history for this message
In , Jocker (jocker) wrote :

(In reply to comment #41)
> (In reply to comment #35)
> > The correct workaround for applications would be to check whether
> > gtk_selection_data_get_data_type(selection_data) == gdk_atom_intern("TARGETS",
> > FALSE)
> > before calling gtk_selection_data_get_targets(), and, if so and
> > gtk_selection_data_get_format(selection_data) == 32, assume XA_ATOM type and
> > use gdk_x11_xatom_to_atom() to do the conversion to GdkAtom.
>
> The java bug has been fixed, so not much point in doing this.
> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6607163

I tend to disagree on that.
I believe that any decently-written piece of software should safeguard from crap input, by checking whenever possible. The input after all could be there by mistake, or intentionally ( i.e. malicious code)

The fact that one piece of crappy software was patched does not mean that there are no more crappy software out there (or older versions of the said software still in circulation)

...just my two cents

Thnx..