netsocket - Fix set_ip_bytes out-of-bound access
netsocket - Fix set_ip_bytes out-of-bound access

set_ip_bytes() does a 16-byte memcpy from the input buffer to
the local nsapi_addr_t despite the address version.

If the address version is ipv4, the input buffer may only be
4-byte in size. This causes a out-of-bound access on the input buffer.

Signed-off-by: Tony Wu <7d96f1423e8ab604e1604a0ea55fe51a076a8533@realtek.com>

HeadsUpDisplayInc/mbed,Archcady/mbed-os,RonEld/mbed,HeadsUpDisplayInc/mbed,mbedmicro/mbed,svogl/mbed-os,nRFMesh/mbed-os,nvlsianpu/mbed,adamgreen/mbed,netzimme/mbed-os,screamerbg/mbed,bulislaw/mbed-os,nvlsianpu/mbed,RonEld/mbed,theotherjimmy/mbed,kl-cruz/mbed-os,svogl/mbed-os,maximmbed/mbed,NXPmicro/mbed,Archcady/mbed-os,YarivCol/mbed-os,pradeep-gr/mbed-os5-onsemi,catiedev/mbed-os,fahhem/mbed-os,maximmbed/mbed,nRFMesh/mbed-os,HeadsUpDisplayInc/mbed,karsev/mbed-os,theotherjimmy/mbed,catiedev/mbed-os,CalSol/mbed,Archcady/mbed-os,adamgreen/mbed,adustm/mbed,mmorenobarm/mbed-os,radhika-raghavendran/mbed-os5.1-onsemi,kjbracey-arm/mbed,pradeep-gr/mbed-os5-onsemi,bulislaw/mbed-os,adustm/mbed,mazimkhan/mbed-os,fanghuaqi/mbed,karsev/mbed-os,andcor02/mbed-os,ryankurte/mbed-os,fahhem/mbed-os,betzw/mbed-os,fahhem/mbed-os,adustm/mbed,bcostm/mbed-os,svogl/mbed-os,cvtsi2sd/mbed-os,catiedev/mbed-os,arostm/mbed-os,c1728p9/mbed-os,mikaleppanen/mbed-os,NXPmicro/mbed,mmorenobarm/mbed-os,CalSol/mbed,nRFMesh/mbed-os,kjbracey-arm/mbed,radhika-raghavendran/mbed-os5.1-onsemi,radhika-raghavendran/mbed-os5.1-onsemi,nRFMesh/mbed-os,karsev/mbed-os,fanghuaqi/mbed,YarivCol/mbed-os,NXPmicro/mbed,j-greffe/mbed-os,kjbracey-arm/mbed,mmorenobarm/mbed-os,screamerbg/mbed,mikaleppanen/mbed-os,kl-cruz/mbed-os,arostm/mbed-os,c1728p9/mbed-os,RonEld/mbed,infinnovation/mbed-os,monkiineko/mbed-os,j-greffe/mbed-os,mazimkhan/mbed-os,bulislaw/mbed-os,pradeep-gr/mbed-os5-onsemi,nRFMesh/mbed-os,screamerbg/mbed,fanghuaqi/mbed,infinnovation/mbed-os,andcor02/mbed-os,kl-cruz/mbed-os,screamerbg/mbed,bcostm/mbed-os,karsev/mbed-os,adustm/mbed,YarivCol/mbed-os,theotherjimmy/mbed,HeadsUpDisplayInc/mbed,pradeep-gr/mbed-os5-onsemi,fanghuaqi/mbed,CalSol/mbed,ryankurte/mbed-os,j-greffe/mbed-os,theotherjimmy/mbed,fahhem/mbed-os,c1728p9/mbed-os,mikaleppanen/mbed-os,mikaleppanen/mbed-os,nvlsianpu/mbed,NXPmicro/mbed,mazimkhan/mbed-os,nvlsianpu/mbed,mikaleppanen/mbed-os,svogl/mbed-os,netzimme/mbed-os,mazimkhan/mbed-os,theotherjimmy/mbed,ryankurte/mbed-os,andcor02/mbed-os,bcostm/mbed-os,mmorenobarm/mbed-os,bcostm/mbed-os,radhika-raghavendran/mbed-os5.1-onsemi,arostm/mbed-os,karsev/mbed-os,arostm/mbed-os,c1728p9/mbed-os,betzw/mbed-os,screamerbg/mbed,theotherjimmy/mbed,YarivCol/mbed-os,fahhem/mbed-os,bcostm/mbed-os,adamgreen/mbed,HeadsUpDisplayInc/mbed,fahhem/mbed-os,arostm/mbed-os,bcostm/mbed-os,ryankurte/mbed-os,radhika-raghavendran/mbed-os5.1-onsemi,monkiineko/mbed-os,nvlsianpu/mbed,j-greffe/mbed-os,maximmbed/mbed,bulislaw/mbed-os,pradeep-gr/mbed-os5-onsemi,CalSol/mbed,mbedmicro/mbed,adustm/mbed,j-greffe/mbed-os,monkiineko/mbed-os,andcor02/mbed-os,adamgreen/mbed,nvlsianpu/mbed,cvtsi2sd/mbed-os,svogl/mbed-os,CalSol/mbed,j-greffe/mbed-os,adamgreen/mbed,monkiineko/mbed-os,cvtsi2sd/mbed-os,screamerbg/mbed,kl-cruz/mbed-os,NXPmicro/mbed,netzimme/mbed-os,YarivCol/mbed-os,andcor02/mbed-os,netzimme/mbed-os,NXPmicro/mbed,monkiineko/mbed-os,netzimme/mbed-os,svogl/mbed-os,RonEld/mbed,adustm/mbed,catiedev/mbed-os,karsev/mbed-os,catiedev/mbed-os,mbedmicro/mbed,mmorenobarm/mbed-os,maximmbed/mbed,HeadsUpDisplayInc/mbed,infinnovation/mbed-os,mikaleppanen/mbed-os,adamgreen/mbed,bulislaw/mbed-os,betzw/mbed-os,monkiineko/mbed-os,maximmbed/mbed,Archcady/mbed-os,CalSol/mbed,mbedmicro/mbed,arostm/mbed-os,betzw/mbed-os,YarivCol/mbed-os,mazimkhan/mbed-os,RonEld/mbed,cvtsi2sd/mbed-os,Archcady/mbed-os,kjbracey-arm/mbed,ryankurte/mbed-os,infinnovation/mbed-os,betzw/mbed-os,catiedev/mbed-os,kl-cruz/mbed-os,Archcady/mbed-os,betzw/mbed-os,c1728p9/mbed-os,mazimkhan/mbed-os,infinnovation/mbed-os,andcor02/mbed-os,radhika-raghavendran/mbed-os5.1-onsemi,ryankurte/mbed-os,pradeep-gr/mbed-os5-onsemi,nRFMesh/mbed-os,cvtsi2sd/mbed-os,bulislaw/mbed-os,infinnovation/mbed-os,cvtsi2sd/mbed-os,maximmbed/mbed,RonEld/mbed,c1728p9/mbed-os,kl-cruz/mbed-os,mmorenobarm/mbed-os,mbedmicro/mbed,fanghuaqi/mbed,netzimme/mbed-os