René's URL Explorer Experiment


Title: Parsing an array with too many dimensions throws exception · Issue #16275 · PowerShell/PowerShell · GitHub

Open Graph Title: Parsing an array with too many dimensions throws exception · Issue #16275 · PowerShell/PowerShell

X Title: Parsing an array with too many dimensions throws exception · Issue #16275 · PowerShell/PowerShell

Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerShell 5.1 and PowerShell. Steps to reprodu...

Open Graph Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...

X Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...

Opengraph URL: https://github.com/PowerShell/PowerShell/issues/16275

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Parsing an array with too many dimensions throws exception","articleBody":"### Prerequisites\r\n\r\n- [X] Write a descriptive title.\r\n- [X] Make sure you are able to repro it on the [latest released version](https://github.com/PowerShell/PowerShell/releases)\r\n- [X] Search the existing issues.\r\n- [X] Refer to the [FAQ](https://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md).\r\n- [X] Refer to [Differences between Windows PowerShell 5.1 and PowerShell](https://docs.microsoft.com/powershell/scripting/whats-new/differences-from-windows-powershell).\r\n\r\n### Steps to reproduce\r\n\r\nThis was originally reported in https://github.com/PowerShell/PSReadLine/issues/2923 by @HumanEquivalentUnit \r\n\r\nRun the following script in pwsh:\r\n```powershell\r\n[System.Management.Automation.Language.Parser]::ParseInput('[int[,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,]]', [ref]$null, [ref]$null)\r\n```\r\n\r\n### Expected behavior\r\n\r\n```console\r\nNo exception thrown from `Parser.ParseInput`\r\n```\r\n\r\n\r\n### Actual behavior\r\n\r\n```console\r\nPS:3> $a = [System.Management.Automation.Language.Parser]::ParseInput('[int[,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,]]', [ref]$null, [ref]$null)\r\nMethodInvocationException: Exception calling \"ParseInput\" with \"3\" argument(s): \"Unrecoverable error in PowerShell.\"\r\n```\r\n\r\n\r\n### Error details\r\n\r\n```console\r\nPS:4> Get-Error\r\n\r\nException             :\r\n    Type           : System.Management.Automation.MethodInvocationException\r\n    ErrorRecord    :\r\n        Exception             :\r\n            Type    : System.Management.Automation.ParentContainsErrorRecordException\r\n            Message : Exception calling \"ParseInput\" with \"3\" argument(s): \"Unrecoverable error in PowerShell.\"\r\n            HResult : -2146233087\r\n        CategoryInfo          : NotSpecified: (:) [], ParentContainsErrorRecordException\r\n        FullyQualifiedErrorId : ParseException\r\n        InvocationInfo        :\r\n            ScriptLineNumber : 1\r\n            OffsetInLine     : 1\r\n            HistoryId        : -1\r\n            Line             : $a = [System.Management.Automation.Language.Parser]::ParseInput('[int[,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,]]',\r\n[ref]$null, [ref]$null)\r\n            PositionMessage  : At line:1 char:1\r\n                               + $a = [System.Management.Automation.Language.Parser]::ParseInput('[int …\r\n                               + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n            CommandOrigin    : Internal\r\n        ScriptStackTrace      : at \u003cScriptBlock>, \u003cNo file>: line 1\r\n    TargetSite     :\r\n        Name          : ConvertToMethodInvocationException\r\n        DeclaringType : System.Management.Automation.ExceptionHandlingOps, System.Management.Automation, Version=7.1.3.0, Culture=neutral,\r\nPublicKeyToken=31bf3856ad364e35\r\n        MemberType    : Method\r\n        Module        : System.Management.Automation.dll\r\n    StackTrace     :\r\n   at System.Management.Automation.ExceptionHandlingOps.ConvertToMethodInvocationException(Exception exception, Type typeToThrow, String methodName,\r\nInt32 numArgs, MemberInfo memberInfo)\r\n   at CallSite.Target(Closure , CallSite , Type , String , PSReference , PSReference )\r\n   at System.Dynamic.UpdateDelegates.UpdateAndExecute4[T0,T1,T2,T3,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3)\r\n   at System.Management.Automation.Interpreter.DynamicInstruction`5.Run(InterpretedFrame frame)\r\n   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)\r\n    Message        : Exception calling \"ParseInput\" with \"3\" argument(s): \"Unrecoverable error in PowerShell.\"\r\n    Data           : System.Collections.ListDictionaryInternal\r\n    InnerException :\r\n        Type           : System.Management.Automation.ParseException\r\n        Message        : Unrecoverable error in PowerShell.\r\n        ErrorRecord    :\r\n            Exception             :\r\n                Type    : System.Management.Automation.ParentContainsErrorRecordException\r\n                Message : Unrecoverable error in PowerShell.\r\n                HResult : -2146233087\r\n            CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException\r\n            FullyQualifiedErrorId : Parse\r\n        TargetSite     :\r\n            Name          : ParseInput\r\n            DeclaringType : System.Management.Automation.Language.Parser\r\n            MemberType    : Method\r\n            Module        : System.Management.Automation.dll\r\n        StackTrace     :\r\n   at System.Management.Automation.Language.Parser.ParseInput(String input, String fileName, Token[]& tokens, ParseError[]& errors)\r\n   at CallSite.Target(Closure , CallSite , Type , String , PSReference , PSReference )\r\n        InnerException :\r\n            Type       : System.TypeLoadException\r\n            Message    : 'System.Int32[,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,]' from assembly 'System.Private.CoreLib, Version=5.0.0.0, Culture=neutral,\r\nPublicKeyToken=7cec85d7bea7798e' has too many dimensions.\r\n            TypeName   : System.Int32[,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,]\r\n            TargetSite :\r\n                Name          : MakeArray\r\n                DeclaringType : System.RuntimeTypeHandle\r\n                MemberType    : Method\r\n                Module        : System.Private.CoreLib.dll\r\n            StackTrace :\r\n   at System.RuntimeTypeHandle.MakeArray(Int32 rank)\r\n   at System.RuntimeType.MakeArrayType(Int32 rank)\r\n   at System.Management.Automation.Language.ArrayTypeName.GetReflectionType()\r\n   at System.Management.Automation.Language.SymbolResolver.VisitArrayTypeName(ArrayTypeName arrayTypeName)\r\n   at System.Management.Automation.Language.SymbolResolver.VisitTypeExpression(TypeExpressionAst typeExpressionAst)\r\n   at System.Management.Automation.Language.TypeExpressionAst.InternalVisit(AstVisitor visitor)\r\n   at System.Management.Automation.Language.CommandExpressionAst.InternalVisit(AstVisitor visitor)\r\n   at System.Management.Automation.Language.PipelineAst.InternalVisit(AstVisitor visitor)\r\n   at System.Management.Automation.Language.StatementBlockAst.InternalVisit(AstVisitor visitor, ReadOnlyCollection`1 traps, ReadOnlyCollection`1\r\nstatements, AstVisitAction action)\r\n   at System.Management.Automation.Language.NamedBlockAst.InternalVisit(AstVisitor visitor)\r\n   at System.Management.Automation.Language.ScriptBlockAst.InternalVisit(AstVisitor visitor)\r\n   at System.Management.Automation.Language.Ast.Visit(AstVisitor astVisitor)\r\n   at System.Management.Automation.Language.SymbolResolver.ResolveSymbols(Parser parser, ScriptBlockAst scriptBlockAst)\r\n   at System.Management.Automation.Language.ScriptBlockAst.PerformPostParseChecks(Parser parser)\r\n   at System.Management.Automation.Language.Parser.ParseTask(String fileName, String input, List`1 tokenList, Boolean recursed, ParseMode parseMode)\r\n   at System.Management.Automation.Language.Parser.Parse(String fileName, String input, List`1 tokenList, ParseError[]& errors, ParseMode parseMode)\r\n   at System.Management.Automation.Language.Parser.ParseInput(String input, String fileName, Token[]& tokens, ParseError[]& errors)\r\n            Source     : System.Private.CoreLib\r\n            HResult    : -2146233054\r\n        Source         : System.Management.Automation\r\n        HResult        : -2146233087\r\n    Source         : System.Management.Automation\r\n    HResult        : -2146233087\r\nCategoryInfo          : NotSpecified: (:) [], MethodInvocationException\r\nFullyQualifiedErrorId : ParseException\r\nInvocationInfo        :\r\n    ScriptLineNumber : 1\r\n    OffsetInLine     : 1\r\n    HistoryId        : -1\r\n    Line             : $a = [System.Management.Automation.Language.Parser]::ParseInput('[int[,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,]]', [ref]$null,\r\n[ref]$null)\r\n    PositionMessage  : At line:1 char:1\r\n                       + $a = [System.Management.Automation.Language.Parser]::ParseInput('[int …\r\n                       + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    CommandOrigin    : Internal\r\nScriptStackTrace      : at \u003cScriptBlock>, \u003cNo file>: line 1\r\n```\r\n\r\n\r\n### Environment data\r\n\r\n```powershell\r\nPS:3> $PSVersionTable\r\n\r\nName                           Value\r\n----                           -----\r\nPSVersion                      7.2.0-preview.10\r\nPSEdition                      Core\r\nGitCommitId                    7.2.0-preview.10\r\nOS                             Microsoft Windows 10.0.19043\r\nPlatform                       Win32NT\r\nPSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}\r\nPSRemotingProtocolVersion      2.3\r\nSerializationVersion           1.1.0.1\r\nWSManStackVersion              3.0\r\n```\r\n\r\n\r\n### Visuals\r\n\r\n_No response_","author":{"url":"https://github.com/daxian-dbw","@type":"Person","name":"daxian-dbw"},"datePublished":"2021-10-19T20:11:34Z","url":"https://github.com/PowerShell/PowerShell/issues/16275"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:c6d49137-f23c-07aa-1dbd-f6d3031e35ad
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBEC4:25DA12:158F2C:1D76E6:6AFDF94C
html-safe-nonce8b5ad44d6e07b569cfc8b48da7293521447adbfa530d793cbfd389bb5baa8175
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRUM0OjI1REExMjoxNThGMkM6MUQ3NkU2OjZBRkRGOTRDIiwidmlzaXRvcl9pZCI6IjQ2ODc4ODA1MDA5OTAwNDg1ODgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaca2f8be1cff228ec20c29cbfa973a20751c69a30c9d7a421c402fbb1255d2e770
hovercard-subject-tagissue:1030700680
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/16275/issue_layout
twitter:imagehttps://opengraph.githubassets.com/90c1493f5d3f3893413497cf3276ae51887cd4ccaf12527e74afa783672f28ac/PowerShell/PowerShell/issues/16275
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/90c1493f5d3f3893413497cf3276ae51887cd4ccaf12527e74afa783672f28ac/PowerShell/PowerShell/issues/16275
og:image:altPrerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedaxian-dbw
hostnamegithub.com
expected-hostnamegithub.com
Noneee3343385a977757dd145b28fabf4a119780f2615a5a36c5a89f66c9b3b5616d
turbo-cache-controlno-preview
go-importgithub.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git
octolytics-dimension-user_id11524380
octolytics-dimension-user_loginPowerShell
octolytics-dimension-repository_id49609581
octolytics-dimension-repository_nwoPowerShell/PowerShell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id49609581
octolytics-dimension-repository_network_root_nwoPowerShell/PowerShell
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release43ae91995f6e2d5ff7a491f3de438f1f723adeaa
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/PowerShell/PowerShell/issues/16275#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fissues%2F16275
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fissues%2F16275
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=PowerShell%2FPowerShell
Reloadhttps://github.com/PowerShell/PowerShell/issues/16275
Reloadhttps://github.com/PowerShell/PowerShell/issues/16275
Reloadhttps://github.com/PowerShell/PowerShell/issues/16275
PowerShellhttps://github.com/PowerShell
PowerShellhttps://github.com/PowerShell/PowerShell
Codehttps://github.com/PowerShell/PowerShell
Issues1.3k (1.3k)https://github.com/PowerShell/PowerShell/issues
Pull requests365 (365)https://github.com/PowerShell/PowerShell/pulls
Discussionshttps://github.com/PowerShell/PowerShell/discussions
Actionshttps://github.com/PowerShell/PowerShell/actions
Projectshttps://github.com/PowerShell/PowerShell/projects
Security and quality3 (3)https://github.com/PowerShell/PowerShell/security
Insightshttps://github.com/PowerShell/PowerShell/insights
https://github.com/PowerShell/PowerShell
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/16275
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/16275
#16276https://github.com/PowerShell/PowerShell/pull/16276
Parsing an array with too many dimensions throws exceptionhttps://github.com/PowerShell/PowerShell/issues/16275#top
#16276https://github.com/PowerShell/PowerShell/pull/16276
Issue-BugIssue has been identified as a bug in the producthttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Bug%22
Resolution-FixedThe issue is fixed.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-Fixed%22
WG-Enginecore PowerShell engine, interpreter, and runtimehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Engine%22
https://github.com/daxian-dbw
Dongbo Wang (daxian-dbw)https://github.com/daxian-dbw
on Oct 19, 2021https://github.com/PowerShell/PowerShell/issues/16275#issue-1030700680
latest released versionhttps://github.com/PowerShell/PowerShell/releases
FAQhttps://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md
Differences between Windows PowerShell 5.1 and PowerShellhttps://docs.microsoft.com/powershell/scripting/whats-new/differences-from-windows-powershell
PowerShell/PSReadLine#2923https://github.com/PowerShell/PSReadLine/issues/2923
HumanEquivalentUnithttps://github.com/HumanEquivalentUnit
Dongbo Wang (daxian-dbw)https://github.com/daxian-dbw
Needs-TriageThe issue is new and needs to be triaged by a work group.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Needs-Triage%22
Issue-BugIssue has been identified as a bug in the producthttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Bug%22
WG-Enginecore PowerShell engine, interpreter, and runtimehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Engine%22
Needs-TriageThe issue is new and needs to be triaged by a work group.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Needs-Triage%22
on Oct 19, 2021https://github.com/PowerShell/PowerShell/issues/16275#event-5487689579
In-PRIndicates that a PR is out for the issuehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22In-PR%22
on Oct 19, 2021https://github.com/PowerShell/PowerShell/issues/16275#event-5487738833
Ilya (iSazonov)https://github.com/iSazonov
completedhttps://github.com/PowerShell/PowerShell/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#16276https://github.com/PowerShell/PowerShell/pull/16276
on Oct 29, 2021https://github.com/PowerShell/PowerShell/issues/16275#event-5538010752
In-PRIndicates that a PR is out for the issuehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22In-PR%22
on Oct 29, 2021https://github.com/PowerShell/PowerShell/issues/16275#event-5538010857
Resolution-FixedThe issue is fixed.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-Fixed%22
on Oct 29, 2021https://github.com/PowerShell/PowerShell/issues/16275#event-5538010916
Sign up for freehttps://github.com/signup?return_to=https://github.com/PowerShell/PowerShell/issues/16275
Sign in to commenthttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/16275
Issue-BugIssue has been identified as a bug in the producthttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Bug%22
Resolution-FixedThe issue is fixed.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-Fixed%22
WG-Enginecore PowerShell engine, interpreter, and runtimehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Engine%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.