ATL call crash fix

AgpsStatus added with a couple string fields for wifi
which are not NULL ended when they are not used. This
get passed to AFW JNI, and allow UTF8 string with the
open ended buffer with junks in it. It might cause
exception depending on the content of the garbadge.

CRs-Fixed: 405473

Change-Id: If762748a4c63fe1be59491b5d08dbadd479176b3
This commit is contained in:
Kevin Tang 2012-09-27 22:28:12 -07:00
parent 0a28a39125
commit 67754118ce

View file

@ -204,7 +204,8 @@ struct Subscriber {
inline virtual ~Subscriber() {}
virtual void setIPAddresses(int &v4, char* v6) = 0;
inline virtual void setWifiInfo(char* ssid, char* password) {}
inline virtual void setWifiInfo(char* ssid, char* password)
{ ssid[0] = 0; password[0] = 0; }
inline virtual bool equals(const Subscriber *s) const
{ return ID == s->ID; }