Skip to content

src: fix null deref in AllocatedBuffer::clear - #32892

Closed
fowles wants to merge 1 commit into
nodejs:masterfrom
fowles:master
Closed

src: fix null deref in AllocatedBuffer::clear#32892
fowles wants to merge 1 commit into
nodejs:masterfrom
fowles:master

Conversation

@fowles

Copy link
Copy Markdown
Contributor

An empty buffer can have a null environment. Previously, we were
getting away with with this, but -fsanitize=null in clang caught it.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows [commit guidelines]

An empty buffer can have a null environment. Previously, we were
getting away with with this, but -fsanitize=null in clang caught it.
@nodejs-github-botnodejs-github-bot added the c++ Issues and PRs that require attention from people who are familiar with C++. label Apr 16, 2020
@fowles

Copy link
Copy Markdown
ContributorAuthor

@soldair FYI

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@fowles

Copy link
Copy Markdown
ContributorAuthor

I don't really understand your ci system, but I suspect those are spurious failures

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@hybrist

Copy link
Copy Markdown
Contributor

Trying to resume the build, let's see if that's enough.

@fowles

Copy link
Copy Markdown
ContributorAuthor

I think this is ready to merge

@hybristhybrist self-assigned this Apr 21, 2020
hybrist pushed a commit that referenced this pull request Apr 21, 2020
An empty buffer can have a null environment. Previously, we were
getting away with with this, but -fsanitize=null in clang caught it.
PR-URL: #32892
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Jan Krems <jan.krems@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
@hybrist

Copy link
Copy Markdown
Contributor

Landed in 10cc254

@hybristhybrist closed this Apr 21, 2020
@hybristhybrist removed their assignment Apr 21, 2020
BethGriggs pushed a commit that referenced this pull request Apr 27, 2020
An empty buffer can have a null environment. Previously, we were
getting away with with this, but -fsanitize=null in clang caught it.
PR-URL: #32892
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Jan Krems <jan.krems@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
@BethGriggsBethGriggs mentioned this pull request Apr 27, 2020
BridgeAR pushed a commit that referenced this pull request Apr 28, 2020
An empty buffer can have a null environment. Previously, we were
getting away with with this, but -fsanitize=null in clang caught it.
PR-URL: #32892
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Jan Krems <jan.krems@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
@BridgeARBridgeAR mentioned this pull request Apr 28, 2020
targos pushed a commit that referenced this pull request Apr 30, 2020
An empty buffer can have a null environment. Previously, we were
getting away with with this, but -fsanitize=null in clang caught it.
PR-URL: #32892
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Jan Krems <jan.krems@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
@targostargos mentioned this pull request May 2, 2020
targos pushed a commit that referenced this pull request May 13, 2020
An empty buffer can have a null environment. Previously, we were
getting away with with this, but -fsanitize=null in clang caught it.
PR-URL: #32892
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Jan Krems <jan.krems@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++Issues and PRs that require attention from people who are familiar with C++.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@fowles@nodejs-github-bot@hybrist@jasnell@addaleax@devnexen@juanarbol