Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OutOfMemoryError #18

Open
mirfatif opened this issue Nov 26, 2021 · 1 comment
Open

OutOfMemoryError #18

mirfatif opened this issue Nov 26, 2021 · 1 comment

Comments

@mirfatif
Copy link

I've seen this on two devices at least, occurs at AdbProtocol.java#L323:

java.lang.OutOfMemoryError: Failed to allocate a 1598575456 byte allocation with 7544583 free bytes and 248MB until OOM, target footprint 15089167, growth limit 268435456
	at com.cgutman.adblib.AdbProtocol$AdbMessage.parseAdbMessage (AdbProtocol.java:276)

cgutman/AdbLib#13

@MuntashirAkon
Copy link

The header it read was wrong. By definition, if the header was wrong, it would have to close the connection immediately. The method in question has no sanitisation at all which is causing this problem, I believe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants