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:
parent
0a28a39125
commit
67754118ce
1 changed files with 2 additions and 1 deletions
|
@ -204,7 +204,8 @@ struct Subscriber {
|
||||||
inline virtual ~Subscriber() {}
|
inline virtual ~Subscriber() {}
|
||||||
|
|
||||||
virtual void setIPAddresses(int &v4, char* v6) = 0;
|
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
|
inline virtual bool equals(const Subscriber *s) const
|
||||||
{ return ID == s->ID; }
|
{ return ID == s->ID; }
|
||||||
|
|
Loading…
Reference in a new issue