mathiasbynens / mathiasbynens/base64

UnhandledPromiseRejectionWarning: RangeError: Maximum call stack size exceeded

Open
#27 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
519
Forks
98
PR merge metrics
No merged PRs in 30d

Description

Apparently the library fails when using against a large image (>6MB)

(node:14571) UnhandledPromiseRejectionWarning: RangeError: Maximum call stack size exceeded
    at RegExp.test (<anonymous>)

My advise is not to use this library until this gets fixed

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the reported failure with a JavaScript input larger than 6 MB and inspect the stack trace around RegExp.test. Trace the library’s encoder or decoder entry point, then verify that the same large input completes without an unhandled rejection or maximum call stack error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.