gnome-power-manager r1993 - in trunk: . src test



Author: rhughes
Date: 2007-03-07 17:40:36 +0000 (Wed, 07 Mar 2007)
New Revision: 1993
ViewCVS link: http://svn.gnome.org/viewcvs/gnome-power-manager?rev=1993&view=rev

Modified:
   trunk/ChangeLog
   trunk/src/gpm-array.c
   trunk/test/gpm-self-test.c
Log:
2007-03-07  Richard Hughes  <richard hughsie com>

* test/gpm-self-test.c: (test_gpm_array):
Add a test for gpm_array_limit_x_size to try to trigger #415717

* src/gpm-array.c: (gpm_array_limit_x_size), (gpm_array_add):
Hopefully fix the crash in #415717, where we were accessing longer
than the array size, as the length of the array was not re-evaluated
when an element was removed.
This might be also the source of some odd 2.17.x bugs.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]