Offset is out of bounds
- Dominant language
- JavaScript
- Stars
- 22
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
Greetings,
I'm getting the following error:
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Offset is out of bounds
at Socket._writeImpl (net.js:159:14)
at Socket._writeOut (net.js:450:25)
at Socket.write (net.js:377:17)
at /home/hynese/backopt/server7.js:30:7
at ChildProcess. (/home/hynese/backopt/node.gunzip/lib/gunzip/index.js:41:7)
at ChildProcess.emit (events.js:81:20)
at ChildProcess.onexit (child_process.js:192:12)
I tried looking at the index.js code, line 41 - I think it's something to do with the buffer size. But I can't seem to figure it out.
Great project btw,
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with server7.js line 30 and node.gunzip/lib/gunzip/index.js line 41, then reproduce the reported Socket._writeImpl error from the stack trace. Inspect the buffer and input sizes involved; done means the reported input no longer raises "Offset is out of bounds" and the behavior is verified with a regression check or reproduction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100