]> git.0d.be Git - empathy.git/commit
Bug 646227 — Possible overflow in persona-view:drag_data_get
authorPhilip Withnall <philip@tecnocode.co.uk>
Wed, 30 Mar 2011 14:18:03 +0000 (15:18 +0100)
committerPhilip Withnall <philip@tecnocode.co.uk>
Tue, 5 Apr 2011 00:59:48 +0000 (01:59 +0100)
commitd7f6a39d2d12d9c66b94dfd58488b9c8f9aea35e
treee5f0ffef7fec73895cc41b57b3e47dccb43adab4
parentcf5ae6bf0560a62e108eb43b172e1ee837d0aa9c
Bug 646227 — Possible overflow in persona-view:drag_data_get

I think it was a fluke that this code worked in the first place, since it was
accessing arrays with indices which were out of range, and which wouldn't have
corresponded to the correct entries even if they were in range.

This should fix the mapping between DND types and DND URIs/atoms in the
contact list, individual and persona views.

Closes: bgo#646227
libempathy-gtk/empathy-contact-list-view.c
libempathy-gtk/empathy-individual-view.c
libempathy-gtk/empathy-persona-view.c