GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — buffer: fix value check for writeUInt{B,L}E by trevnorris · Pull Request #3500 · nodejs/node

Conversation

@trevnorris

@trevnorris trevnorris commented Oct 23, 2015

Copy link
Copy Markdown
Contributor

Fixes: #3497

CI: https://ci.nodejs.org/job/node-test-pull-request/583/

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
bnoordhuis
bnoordhuis reviewed Oct 23, 2015
View reviewed changes
Comment thread lib/buffer.js Outdated

@bnoordhuis bnoordhuis Oct 23, 2015

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think Crankshaft and TurboFan are smart enough to move the Math.pow() call to the use site but the baseline compiler probably isn't, which would mean an extra Math.pow() call in the (unoptimized) common case.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@trevnorris trevnorris Oct 23, 2015

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh whoops. I just moved it b/c it didn't fit in 80 chars, but brain farted that i moved it outside the if. will fix.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@mscdex mscdex added the buffer Issues and PRs related to the buffer subsystem. label Oct 23, 2015
@jasnell

jasnell commented Oct 26, 2015

Copy link
Copy Markdown
Member

@trevnorris ... would you want this in v4.x?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@trevnorris

trevnorris commented Oct 26, 2015

Copy link
Copy Markdown
Contributor Author

@jasnell bug fix, so I think so.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jasnell jasnell added the lts-watch-v4.x label Oct 26, 2015
@trevnorris
trevnorris force-pushed the buf-fix-uint-write branch from 3d2fd99 to 425d681 Compare October 26, 2015 17:19
@trevnorris

trevnorris commented Oct 26, 2015

Copy link
Copy Markdown
Contributor Author

@bnoordhuis Addressed comments.

New CI: https://ci.nodejs.org/job/node-test-pull-request/620/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@trevnorris

trevnorris commented Oct 26, 2015

Copy link
Copy Markdown
Contributor Author

Two unrelated failures. Everything else looks good.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@trevnorris
trevnorris force-pushed the buf-fix-uint-write branch 2 times, most recently from 540da8d to 67d4e96 Compare October 26, 2015 20:10
@bnoordhuis

bnoordhuis commented Oct 26, 2015

Copy link
Copy Markdown
Member

LGTM. Consider adding tests for byteLength > 1.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@trevnorris

trevnorris commented Oct 26, 2015

Copy link
Copy Markdown
Contributor Author

@bnoordhuis do these (https://github.com/nodejs/node/pull/3500/files#diff-aa771a8dc1afdde910c49517a74a0ddeR143) not cover that?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bnoordhuis

bnoordhuis commented Oct 26, 2015

Copy link
Copy Markdown
Member

I only see tests for byteLength == 0 and 1 or am I missing something?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@trevnorris
buffer: fix value check for writeUInt{B,L}E
559e66b
Fixes: nodejs#3497
@trevnorris
trevnorris force-pushed the buf-fix-uint-write branch from 67d4e96 to 559e66b Compare October 26, 2015 20:57
trevnorris added a commit that referenced this pull request Oct 26, 2015
@trevnorris
buffer: fix value check for writeUInt{B,L}E
3308e5e
Fixes: #3497
PR-URL: #3500
Reviewed-By: Ben Noordhuis <[email protected]>
@trevnorris

trevnorris commented Oct 26, 2015

Copy link
Copy Markdown
Contributor Author

Thanks for the review. Landed in 3308e5e.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@trevnorris trevnorris closed this Oct 26, 2015
@trevnorris
trevnorris deleted the buf-fix-uint-write branch October 26, 2015 20:59
trevnorris added a commit that referenced this pull request Oct 26, 2015
@trevnorris @rvagg
buffer: fix value check for writeUInt{B,L}E
6a04cc0
Fixes: #3497
PR-URL: #3500
Reviewed-By: Ben Noordhuis <[email protected]>
@rvagg rvagg mentioned this pull request Oct 27, 2015
Release proposal: v5.0.0 #3466
Merged
trevnorris added a commit that referenced this pull request Oct 28, 2015
@trevnorris @jasnell
buffer: fix value check for writeUInt{B,L}E
bc2120c
Fixes: #3497
PR-URL: #3500
Reviewed-By: Ben Noordhuis <[email protected]>
@jasnell

jasnell commented Oct 28, 2015

Copy link
Copy Markdown
Member

Landed in v4.x-staging bc2120c

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jasnell jasnell added land-on-v4.x and removed lts-watch-v4.x labels Oct 28, 2015
@rvagg rvagg mentioned this pull request Oct 28, 2015
Preparing v4.2.2 LTS Maintenance nodejs/Release#50
Closed
trevnorris added a commit that referenced this pull request Oct 29, 2015
@trevnorris @jasnell
buffer: fix value check for writeUInt{B,L}E
1d0f2cb
Fixes: #3497
PR-URL: #3500
Reviewed-By: Ben Noordhuis <[email protected]>
@jasnell jasnell mentioned this pull request Oct 29, 2015
Release Proposal: v4.2.2 "Argon" (LTS) #3588
Closed
@jasnell jasnell removed the land-on-v4.x label Nov 3, 2015
This was referenced Apr 29, 2023
[Snyk] Security upgrade karma from 3.1.4 to 5.0.8 aliscco/alisco-node#375
Open
[Snyk] Security upgrade karma from 3.1.4 to 5.0.8 aliscco/alisco-node#379
Open
This was referenced Jun 22, 2023
[Snyk] Security upgrade karma from 3.1.4 to 5.0.8 aliscco/alisco-node#494
Open
[Snyk] Security upgrade karma from 3.1.4 to 5.0.8 aliscco/alisco-node#532
Open
[Snyk] Security upgrade karma from 4.4.1 to 5.0.8 aliscco/alisco-node#562
Open
[Snyk] Security upgrade karma from 4.4.1 to 5.0.8 aliscco/alisco-node#595
Open
[Snyk] Security upgrade karma from 3.1.4 to 5.0.8 aliscco/alisco-node#614
Open
@leonardoadame leonardoadame mentioned this pull request Jul 9, 2023
[Snyk] Security upgrade karma from 3.1.4 to 5.0.8 leonardoadame/node#143
Open
@aliscco aliscco mentioned this pull request Oct 27, 2023
[Snyk] Security upgrade karma from 3.1.4 to 5.0.8 aliscco/alisco-node#646
Open
@aliscco aliscco mentioned this pull request Nov 28, 2023
[Snyk] Security upgrade karma from 3.1.4 to 5.0.8 aliscco/alisco-node#695
Open
This was referenced Nov 29, 2023
[Snyk] Security upgrade karma from 3.1.4 to 5.0.8 leonardoadame/node#211
Open
[Snyk] Security upgrade karma from 3.1.4 to 5.0.8 leonardoadame/node#268
Open
@aliscco aliscco mentioned this pull request Dec 2, 2023
[Snyk] Security upgrade karma from 3.1.4 to 5.0.8 aliscco/alisco-node#1024
Open
@leonardoadame leonardoadame mentioned this pull request Dec 3, 2023
[Snyk] Security upgrade karma from 3.1.4 to 5.0.8 leonardoadame/node#479
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

buffer Issues and PRs related to the buffer subsystem.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@trevnorris @jasnell @bnoordhuis @mscdex
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.