kernelhcy / gtkqq

a qq client based on gtk+ uses webqq protocol
http://code.google.com/p/gtk-qq/
GNU General Public License v3.0
181 stars 42 forks source link

program crash at qqlogin.c #22

Closed xyubuntu closed 12 years ago

xyubuntu commented 12 years ago

The size of array params is too small and overwriting it may smash the stack of function get_ptcz_skey(). I modify 300 to 500 to sovle the problem.

mathslinux commented 12 years ago

@xyubuntu The code here is g_sprintf(...); Normally it should use g_snprintf, not g_sprintf. and the size of the params is small, i will fix those bugs. thanks.

ekd123 commented 12 years ago

@mathslinux well.. a better way is to use gstring instead.