Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RangeError / stack overflow #265

Open
ndsvw opened this issue May 24, 2023 · 0 comments
Open

RangeError / stack overflow #265

ndsvw opened this issue May 24, 2023 · 0 comments

Comments

@ndsvw
Copy link

ndsvw commented May 24, 2023

Running markdown-link-check (the CLI or the library, it does not matter) on this file https://raw.githubusercontent.com/meirwah/awesome-incident-response/master/README.md results in a RangeError, but the memory used by my terminal application (when running the CLI) rises from 100MiB to 3.5GiB first... There is probably some kind of endless recursion / stack overflow happening here.

Command:
markdown-link-check ./README.md

Error:

Checking links in Projects/meirwah/awesome-incident-response
Checking... [=========================] 99%node:buffer:363
throw new ERR_INVALID_ARG_VALUE.RangeError('size', size);
^

RangeError [ERR_INVALID_ARG_VALUE]: The argument 'size' is invalid. Received 4391202816
at Function.allocUnsafe (node:buffer:385:3)
at Function.concat (node:buffer:564:25)
at PassThrough. (/home/alex/privat/SynologyDrive/Projects/gh-helper/markdown-linkcheck-ex/node_modules/needle/lib/needle.js:688:27)
at PassThrough.emit (node:events:525:35)
at endReadableNT (node:internal/streams/readable:1359:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
code: 'ERR_INVALID_ARG_VALUE'
}

Node.js v18.14.2

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

No branches or pull requests

1 participant