** Changed in: gnome-applets (Ubuntu)
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-applets in Ubuntu.
https://bugs.launchpad.net/bugs/1071883

Title:
  weather applet prefs crash due to incorrect use of g_settings_get ()

Status in “gnome-applets” package in Ubuntu:
  Fix Released

Bug description:
  The function compare_location() in gweather-pref.c contains the
  following call:

      g_settings_get (pref->priv->applet->lib_settings, "default-location", 
"(ssm(dd))",
                    &default_loc, NULL, NULL);

  This format string requires 5 pointers to be provided, but only 3 are
  given.  Beacuse if this, g_settings_get will use random stack data as
  pointers, and corrupt memory causing a crash.

  Adding 2 more NULL pointers fixes the problem:

      g_settings_get (pref->priv->applet->lib_settings, "default-location", 
"(ssm(dd))",
                    &default_loc, NULL, NULL, NULL, NULL);

  
  Version 3.5.92-0ubuntu1, quantal.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-applets/+bug/1071883/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to