Skip to content

Conversation

@BridgeAR
Copy link
Member

@BridgeARBridgeAR commented Jan 26, 2021

doc: fix outdated util inspect documentation and layout example The documentation and layout example was not up to date with the latest changes. 
util: fix infinite recursion during inspection A specially crafted object with circular structures behind getters could cause a infinite recursion. This is now fixed by detecting the objects as already visited. 

Fixes: #37054

@nodejs-github-botnodejs-github-bot added the util Issues and PRs related to the built-in util module. label Jan 26, 2021
@BridgeARBridgeAR added the needs-ci PRs that need a full CI run. label Jan 26, 2021
@nodejs-github-bot

This comment has been minimized.

@LxxyxLxxyx removed the needs-ci PRs that need a full CI run. label Jan 27, 2021
Copy link
Member

@TrottTrott left a comment

Choose a reason for hiding this comment

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

LGTM with @aduh95's nits and my question about the doc sample code sorted.

@BridgeAR
Copy link
MemberAuthor

PTAL

A specially crafted object with circular structures behind getters could cause a infinite recursion. This is now fixed by detecting the objects as already visited. Signed-off-by: Ruben Bridgewater <[email protected]>
The documentation and layout example was not up to date with the latest changes. Signed-off-by: Ruben Bridgewater <[email protected]>
Copy link
Contributor

@aduh95aduh95 left a comment

Choose a reason for hiding this comment

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

RSLGTM

@antsmartianantsmartian added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Apr 29, 2021
@nodejs-github-bot

This comment has been minimized.

@nodejs-github-bot

This comment has been minimized.

@nodejs-github-bot
Copy link
Collaborator

nodejs-github-bot commented Apr 30, 2021

@jasnell
Copy link
Member

Landed in 3c6ff9e...5bfb6f0

@jasnelljasnell closed this Apr 30, 2021
jasnell pushed a commit that referenced this pull request Apr 30, 2021
A specially crafted object with circular structures behind getters could cause a infinite recursion. This is now fixed by detecting the objects as already visited. Signed-off-by: Ruben Bridgewater <[email protected]> PR-URL: #37079Fixes: #37054 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Juan José Arboleda <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Anto Aravinth <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
jasnell pushed a commit that referenced this pull request Apr 30, 2021
The documentation and layout example was not up to date with the latest changes. Signed-off-by: Ruben Bridgewater <[email protected]> PR-URL: #37079Fixes: #37054 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Juan José Arboleda <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Anto Aravinth <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
targos pushed a commit that referenced this pull request May 3, 2021
A specially crafted object with circular structures behind getters could cause a infinite recursion. This is now fixed by detecting the objects as already visited. Signed-off-by: Ruben Bridgewater <[email protected]> PR-URL: #37079Fixes: #37054 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Juan José Arboleda <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Anto Aravinth <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
targos pushed a commit that referenced this pull request May 3, 2021
The documentation and layout example was not up to date with the latest changes. Signed-off-by: Ruben Bridgewater <[email protected]> PR-URL: #37079Fixes: #37054 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Juan José Arboleda <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Anto Aravinth <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
@targostargos mentioned this pull request May 3, 2021
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.utilIssues and PRs related to the built-in util module.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

specific scenario causes infinite recursion in util.inspect (max stack size exceeded)

10 participants

@BridgeAR@nodejs-github-bot@jasnell@Trott@antsmartian@aduh95@trivikr@juanarbol@targos@Lxxyx