KhunHtetzNaing/ADB-OTG

Possible fix for push?

Opened this issue · 1 comments

for some reason when i run Push(adbConnection, local, remotePath).execute(handler); on a very small file it works, but on a file over 8kb the function seems to hang up? is there any possible fix for this issue?

i found a fix for the issue! it seems that in some scenarios the buffer goes out of bounds, i fixed the issue by removing 10 from the buffermax size so we never reach the actual buffer limit avoiding any overflow