-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
Buffer.slice: Document behavior if end > slice.length #14714
Comments
Care to submit a documentation PR? |
vishal7201
added a commit
to vishal7201/node
that referenced
this issue
Aug 9, 2017
… buffer length Fixes nodejs#14714 - issue
4 tasks
probably not going to have time :(
On Wed, Aug 9, 2017 at 09:00 Colin Ihrig ***@***.***> wrote:
Care to submit a documentation PR?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#14714 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAOSI33bA21P3jLxjEBcKbC-5JvlsaCaks5sWdeOgaJpZM4OyQ7I>
.
--
…--
Kevin Burke
925.271.7005 | kev.inburke.com
|
Looks like it's been taken care of: #14720 |
addaleax
pushed a commit
that referenced
this issue
Aug 12, 2017
Added description for the case when `end` is greater than buffer length PR-URL: #14720 Fixes: #14714 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
Thank you!
On Sat, Aug 12, 2017 at 14:17 Refael Ackermann ***@***.***> wrote:
Closed #14714 <#14714> via 9cb3745
<9cb3745>
.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#14714 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAOSIxFCX6U80aEua2oucTzM2UNQjsIJks5sXghwgaJpZM4OyQ7I>
.
--
…--
Kevin Burke
925.271.7005 | kev.inburke.com
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The documentation for Buffer.slice says this about end:
It does not describe what happens if end is greater than the length of the buffer. Does Node return a buffer of length (end - start) with zero values for the extra values? Does it return a shorter buffer? Does it throw a RangeError?
The text was updated successfully, but these errors were encountered: