Skip to content

Limit bitmap dimensions to-supplied dimensions, the bitmap options do not exceed 2048x2048 to prevent bitmap overflow on Android 2048x2048, which prevents overflow/crashes on Android API 22.Update imagepicker.android.ts#343

Open
zeebie-new wants to merge 1 commit intoNativeScript:masterfrom
zeebie-new:master

Conversation

@zeebie-new
Copy link

PR Checklist

What is the current behavior?

On Android API 22, setting large values for width or height in ImageAssetOptions causes the app to crash with "bitmap size exceeds 32 bits" (see #6289).

What is the new behavior?

This change caps the bitmap dimensions to 2048x2048 in imagepicker.android.ts to prevent bitmap overflow and crashes on API 22. The cap is applied regardless of user-supplied dimensions.

Fixes/Implements/Closes #6289.

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.

1 participant