immich/mobile/android
Santo Shakil 17779c1e74
fix(mobile): cronet thumbnail buffer overflow regression from #28439 (#28450)
The hybrid added in onReadCompleted reuses Cronet's ByteBuffer between
reads to save a JNI wrap call when no grow is needed. That reuse breaks
advance() — Cronet's position() is cumulative across reads, so the same
K bytes get counted on every subsequent iteration. b.offset overshoots
b.capacity, the reuse branch keeps firing on a now-empty buffer, and
request.read() throws the original IllegalArgumentException again.

Always pass a fresh wrap from wrapRemaining() so byteBuffer.position()
reflects only this iteration's bytes. Same shape as the original PR
had before the broken optimization was layered on top.
2026-05-15 17:25:31 -04:00
..
app fix(mobile): cronet thumbnail buffer overflow regression from #28439 (#28450) 2026-05-15 17:25:31 -04:00
fastlane chore: pump version (#28231) 2026-05-05 16:27:04 -05:00
gradle chore(mobile): minor dependency updates (#27949) 2026-04-19 11:56:39 -05:00
metadata/en-US chore(web,mobile): update github repo url (#974) 2022-11-15 20:30:44 -06:00
.gitignore chore: build report 2023-07-28 09:06:25 -05:00
build.gradle chore: pump flutter to 3.41.6 (#27834) 2026-04-16 22:26:46 +05:30
Gemfile Implement CI/CD for Android (#48) 2022-03-13 22:10:07 -05:00
Gemfile.lock chore(deps): update dependency fastlane to v2.220.0 (#9653) 2024-05-22 09:46:53 +00:00
gradle.properties ci: much faster mobile builds (#19490) 2025-06-25 10:40:53 -05:00
settings.gradle chore(mobile): minor dependency updates (#27949) 2026-04-19 11:56:39 -05:00