-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
double execution with THROW_AND_RETURN_IF_OOB #41935
Comments
Mesteery
added
buffer
Issues and PRs related to the buffer subsystem.
c++
Issues and PRs that require attention from people who are familiar with C++.
labels
Feb 11, 2022
RaisinTen
added a commit
to RaisinTen/node
that referenced
this issue
Feb 12, 2022
There's no need to evaluate the expression passed into the macro more than once. Fixes: nodejs#41935 Signed-off-by: Darshan Sen <[email protected]>
PR: #41945 |
aduh95
pushed a commit
that referenced
this issue
Feb 17, 2022
There's no need to evaluate the expression passed into the macro more than once. Fixes: #41935 Signed-off-by: Darshan Sen <[email protected]> PR-URL: #41945 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Evan Lucas <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
bengl
pushed a commit
to bengl/node
that referenced
this issue
Feb 21, 2022
There's no need to evaluate the expression passed into the macro more than once. Fixes: nodejs#41935 Signed-off-by: Darshan Sen <[email protected]> PR-URL: nodejs#41945 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Evan Lucas <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
bengl
pushed a commit
to bengl/node
that referenced
this issue
Feb 21, 2022
There's no need to evaluate the expression passed into the macro more than once. Fixes: nodejs#41935 Signed-off-by: Darshan Sen <[email protected]> PR-URL: nodejs#41945 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Evan Lucas <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
bengl
pushed a commit
that referenced
this issue
Feb 21, 2022
There's no need to evaluate the expression passed into the macro more than once. Fixes: #41935 Signed-off-by: Darshan Sen <[email protected]> PR-URL: #41945 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Evan Lucas <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
bengl
pushed a commit
that referenced
this issue
Feb 21, 2022
There's no need to evaluate the expression passed into the macro more than once. Fixes: #41935 Signed-off-by: Darshan Sen <[email protected]> PR-URL: #41945 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Evan Lucas <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
bengl
pushed a commit
that referenced
this issue
Feb 22, 2022
There's no need to evaluate the expression passed into the macro more than once. Fixes: #41935 Signed-off-by: Darshan Sen <[email protected]> PR-URL: #41945 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Evan Lucas <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
danielleadams
pushed a commit
to danielleadams/node
that referenced
this issue
Apr 21, 2022
There's no need to evaluate the expression passed into the macro more than once. Fixes: nodejs#41935 Signed-off-by: Darshan Sen <[email protected]> PR-URL: nodejs#41945 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Evan Lucas <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
danielleadams
pushed a commit
that referenced
this issue
Apr 24, 2022
There's no need to evaluate the expression passed into the macro more than once. Fixes: #41935 Signed-off-by: Darshan Sen <[email protected]> PR-URL: #41945 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Evan Lucas <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
16.13.2
Platform
Microsoft Windows NT 10.0.19042.0 x64
Subsystem
No response
What steps will reproduce the bug?
In file
node_buffer.cc
, macroTHROW_AND_RETURN_IF_OOB
is called with a function as argument :This macro is replaced with this code :
The
ParseArrayIndex
function will be called twice which will generate performance losses.How often does it reproduce? Is there a required condition?
No response
What is the expected behavior?
No response
What do you see instead?
Each macro call of
THROW_AND_RETURN_IF_OOB
macro should be checked.Additional information
No response
The text was updated successfully, but these errors were encountered: