8000 PowerShell process crash on recursive array converted to bool · Issue #3207 · PowerShell/PowerShell · GitHub
[go: up one dir, main page]

Skip to content
PowerShell process crash on recursive array converted to bool #3207
Closed
@PetSerAl

Description

@PetSerAl

Steps to reproduce

$a[0] = $a = [PSObject](,1)
[System.Management.Automation.LanguagePrimitives]::IsTrue($a)

Expected behavior

Return $true.

Actual behavior

Process is terminated due to StackOverflowException.

Environment data

> $PSVersionTable

Name                           Value
----                           -----
CLRVersion
GitCommitId                    v6.0.0-alpha.16-24-gc74b2a7670c79b02bb526c0998720b93ac385d03
PSEdition                      Core
SerializationVersion           1.1.0.1
PSVersion                      6.0.0-alpha
WSManStackVersion              3.0
BuildVersion                   3.0.0.0
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0, 5.0, 5.1.10032.0, 6.0.0}
PSRemotingProtocolVersion      2.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugIssue has been identified as a bug in the productResolution-FixedThe issue is fixed.WG-Enginecore PowerShell engine, interpreter, and runtime

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0