Skip to content

fix(data): bound bitmap decoding resources - #1844

Open
bruhdev1290 wants to merge 1 commit into
googlemaps:mainfrom
bruhdev1290:fix/bounded-bitmap-decoding
Open

bruhdev1290 wants to merge 1 commit into
googlemaps:mainfrom
bruhdev1290:fix/bounded-bitmap-decoding

Conversation

@bruhdev1290

Copy link
Copy Markdown

Summary

  • centralize bitmap decoding for KMZ and URL-backed images behind bounds-first validation
  • cap encoded input, decoded allocation, cumulative KMZ image memory, and concurrent URL loads
  • recycle decoded images on parse failures and account for sub-kilobyte cache entries

Testing

  • ./gradlew :data:testDebugUnitTest
  • ./gradlew spotlessCheck :data:lintDebug apiCheck

The new tests cover ordinary image decoding, dimension and allocation limits, bounded stream reads, cumulative KMZ accounting, cleanup on parser failures, extension-point output validation, and concurrent URL loading.

@bruhdev1290
bruhdev1290 marked this pull request as ready for review November 4, 2026 19:56
@dkhawk
dkhawk requested a review from kikoso November 12, 2026 19:29
@kikoso kikoso self-assigned this Nov 12, 2026

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

3 participants