FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

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 by zeebie-new · Pull Request #343 · NativeScript/nativescript-imagepicker · GitHub

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 into
NativeScript:masterfrom
zeebie-new:master

Conversation

Copy link
Copy Markdown

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.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL