Open GoogleCodeExporter opened 8 years ago
I've the same problem and I don't find the solution. :(
Original comment by antonio....@gmail.com
on 22 Aug 2013 at 12:51
It seems that the problem is located in OSNetworkSystem_readDirect and
OSNetworkSystem_recvDirect
(libcore/luni/src/main/native/org_apache_harmony_luni_platform_OSNetworkSystem.c
pp).
The droidbox23 patch from
https://code.google.com/p/droidbox/source/browse/trunk/droidbox23/libcore.patch#
931 adds:
int len = strlen((char*)dst);
which does not represent the correct length of bytes read from the network and
therefore causes a memory access violation.
Using int len = (int)bytesReceived; in OSNetworkSystem_readDirect and
OSNetworkSystem_recvDirect should fix the problem.
Cheers,
Lukas
Original comment by l.weichs...@gmail.com
on 29 Jun 2014 at 11:39
thank you.
Original comment by seuk...@gmail.com
on 25 Sep 2014 at 7:48
Original issue reported on code.google.com by
seuk...@gmail.com
on 21 Jun 2013 at 4:36