Uh oh!
There was an error while loading. Please reload this page.
n-api: guard against cond null dereference - #21871
Closed
gabrielschulhof wants to merge 1 commit into
Closed
Conversation
gabrielschulhof
commented
Jul 18, 2018
ContributorAuthor
CI to flush out potential platform-dependent bugs: https://ci.nodejs.org/job/node-test-pull-request/15937/ |
gabrielschulhofforce-pushed
the
help-1387-tsfn-zero-queue
branch
from
July 18, 2018 16:27
bdc2b60 to
837e716Comparegabrielschulhof
commented
Jul 18, 2018
ContributorAuthor
Another CI after fixing syntax: https://ci.nodejs.org/job/node-test-pull-request/15938/ |
A condition variable is only created by the thread-safe function if the queue size is set to something larger than zero. This adds null-checks around the condition variable and tests for the case where the queue size is zero. Fixes: nodejs/help#1387
gabrielschulhofforce-pushed
the
help-1387-tsfn-zero-queue
branch
from
July 19, 2018 02:25
837e716 to
6f71428Comparegabrielschulhof
commented
Jul 19, 2018
ContributorAuthor
Improved the commit message a bit. |
gabrielschulhof
commented
Jul 20, 2018
ContributorAuthor
gabrielschulhof
commented
Jul 20, 2018
ContributorAuthor
@nodejs/collaborators may I please have another review before landing this? |
cjihrig
approved these changes
Jul 23, 2018
benjamingr
approved these changes
Jul 23, 2018
gabrielschulhof
commented
Jul 24, 2018
ContributorAuthor
gabrielschulhof
commented
Jul 24, 2018
ContributorAuthor
Landed in 53296e8. |
gabrielschulhof pushed a commit
that referenced
this pull request
Jul 24, 2018
A condition variable is only created by the thread-safe function if the queue size is set to something larger than zero. This adds null-checks around the condition variable and tests for the case where the queue size is zero. Fixes: nodejs/help#1387 PR-URL: #21871 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
targos pushed a commit
that referenced
this pull request
Jul 24, 2018
A condition variable is only created by the thread-safe function if the queue size is set to something larger than zero. This adds null-checks around the condition variable and tests for the case where the queue size is zero. Fixes: nodejs/help#1387 PR-URL: #21871 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Merged
This was referenced Aug 1, 2018
gabrielschulhof pushed a commit
to gabrielschulhof/node
that referenced
this pull request
Dec 28, 2018
A condition variable is only created by the thread-safe function if the queue size is set to something larger than zero. This adds null-checks around the condition variable and tests for the case where the queue size is zero. Fixes: nodejs/help#1387 PR-URL: nodejs#21871 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
MylesBorins pushed a commit
that referenced
this pull request
Jan 18, 2019
A condition variable is only created by the thread-safe function if the queue size is set to something larger than zero. This adds null-checks around the condition variable and tests for the case where the queue size is zero. Fixes: nodejs/help#1387 PR-URL: #21871 Backport-PR-URL: #25002 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
rvagg pushed a commit
that referenced
this pull request
Feb 28, 2019
A condition variable is only created by the thread-safe function if the queue size is set to something larger than zero. This adds null-checks around the condition variable and tests for the case where the queue size is zero. Fixes: nodejs/help#1387 PR-URL: #21871 Backport-PR-URL: #25002 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
A condition variable is only created by the thread-safe function if the
queue size is set to something larger than zero. This adds tests for the
case where the queue size is zero.
Fixes: nodejs/help#1387
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes