[Pidgin] #11746: GG - Fixed unitialized variable which caused crash in purple_debug

Pidgin trac at pidgin.im
Tue Apr 27 03:14:13 EDT 2010


#11746: GG - Fixed unitialized variable which caused crash in purple_debug
-----------------------+----------------------------------------------------
 Reporter:  hanzz      |     Owner:  bartosz
     Type:  patch      |    Status:  new    
Component:  Gadu-Gadu  |   Version:  2.6.6  
 Keywords:             |  
-----------------------+----------------------------------------------------
 Hi,
 my patch fixes uninitialized variable in GG, which causes crashes in
 notify60. This could be (but I'm not sure at all) fix also for #9356,
 #11737.

 {{{
 #
 # old_revision [1b206e64e678d46bf6bea552500d2cd15375ed82]
 #
 # patch "libpurple/protocols/gg/lib/events.c"
 #  from [cb6479253caf6df38fdbd7b648a11849a2fb9ec0]
 #    to [ab05c193f8da5d0470052b17d6933714a325c187]
 #
 ============================================================
 --- libpurple/protocols/gg/lib/events.c
 cb6479253caf6df38fdbd7b648a11849a2fb9ec0
 +++ libpurple/protocols/gg/lib/events.c
 ab05c193f8da5d0470052b17d6933714a325c187
 @@ -842,6 +842,7 @@ static int gg_watch_fd_connected(struct
                         }

                         e->event.notify60[0].uin = 0;
 +                       e->event.notify60[i].descr = NULL;

                         while (length >= sizeof(struct gg_notify_reply77))
 {
                                 uin_t uin = gg_fix32(n->uin);

 }}}

-- 
Ticket URL: <http://developer.pidgin.im/ticket/11746>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list