Integer overflow leading to a buffer overflow

Added a length check in to avoid integer overflow
in dataConnOpenCommand and set APN methods.
As the APN name is like few 100bytes so
using the micro defined int gps_extended_c.h.
Added typecast to avoid compiler errors in some
PLs

Change-Id: I2288c2c29e410571a72b92782b21f4b6c5ab4ff1
CRs-fixed: 2419292
2 files changed