GNOME Bugzilla – Bug 576928
Brasero crashes when pasting empty clipboard
Last modified: 2009-03-29 19:06:31 UTC
Steps: 1. Make sure clipboard is empty 2. Open brasero 3. Create new audio project 4. CTRL-V 5. crash: Backtrace:
+ Trace 213899
Other info: Reported on Launchpad: https://bugs.launchpad.net/bugs/345177
Created attachment 131505 [details] [review] Check for n_atoms > 0 For C (IIRC), 0 is 'false' and all non-zero values are true, therefore when -1 was used as a "no atoms" value, the loop got evaluated, when it was expecting to be able to count downwards from a positive value to 0. This patch fixes this by changing the test from "while (n_atoms)" to "while (n_atoms > 0)".
The patch looks good i applied to both gnome 2.26 branch and trunk. Thanks 2009-03-29 Luis Medinas <lmedinas@gnome.org> * src/brasero-audio-disc.c (brasero_audio_disc_clipboard_targets_cb): Fix bgo #576928 – Brasero crashes when pasting empty clipboard. Patch from Tom Parker <palfrey@tevp.net>