-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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: use buffer length as max of start offset in buf.compare
#47757
base: main
Are you sure you want to change the base?
Conversation
`targetStart` and `sourceStart` in `buf.compare` can't be greater than each buffer length like `targetEnd` and `sourceEnd`.
I'm not sure this is worth the breakage it could cause? |
@mscdex From the user's point of view, I think "start offset" and "end offset" need same limitation for consistency. I attached result of CITGM result. CITGM: https://ci.nodejs.org/view/Node.js-citgm/job/citgm-smoker/3160/ |
CITGM ( It doesn't show any related failure AFAICT
|
targetStart
andsourceStart
inbuf.compare
can't be greater than each buffer length liketargetEnd
andsourceEnd
.