Bug#539624: segfaults if the system doesn't have hal
Rogério Brito
rbrito at ime.usp.br
Sun Aug 9 11:32:19 UTC 2009
tags 539624 +patch
On Aug 09 2009, Rogério Brito wrote:
> Of course, there was a NULL pointer dereference: the "devices" pointer
> is initialized to NULL at the top of the function and can never get
> assigned any value (well, this is the case here):
>
> ,----
> | (...)
> | libhal.c 3126 : LibHalContext *ctx is NULL
> | rhythmbox: brasero-medium-monitor.c:451: brasero_medium_monitor_init: Assertion `devices != ((void *)0)' failed.
> | Aborted
> `----
OK. I just fixed this with the attached patch.
Applied, compiled, tested, working. Please, apply.
Regards, Rogério Brito.
--
Rogério Brito : rbrito@{mackenzie,ime.usp}.br : GPG key 1024D/7C2CAEB8
http://www.ime.usp.br/~rbrito : http://meusite.mackenzie.com.br/rbrito
Projects: algorithms.berlios.de : lame.sf.net : vrms.alioth.debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: brasero-null-pointer-dereference.patch
Type: text/x-diff
Size: 853 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20090809/bb8efdbc/attachment.patch>
More information about the pkg-gnome-maintainers
mailing list