Skip to content

PowerShell process crash on recursive array converted to bool #3207

Closed

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

Activity

  1. added
    WG-Engine
    Issue-Bug
    on Feb 26, 2017
  2. daxian-dbw commented on Feb 27, 2017

    @daxian-dbw
    Member

    Closed via #3208

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugResolution-FixedWG-Engine

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions