GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Validate updatable-help CAB extraction and limit module names to 128 characters by jshigetomi · Pull Request #28203 · PowerShell/PowerShell Conversation
|
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Native extraction failure contracts lack regression coverage sufficient to establish safe behavior.
This PR hardens PowerShell’s updatable-help extraction and limits module names used in generated help paths.
Changes:
| File | Description |
|---|---|
| src/System.Management.Automation/resources/HelpDisplayStrings.resx | Adds the oversized module-name error message. |
| src/System.Management.Automation/help/UpdatableHelpModuleInfo.cs | Defines the module-name length limit. |
| src/System.Management.Automation/help/UpdatableHelpCommandBase.cs | Enforces the limit during module selection. |
| src/System.Management.Automation/help/CabinetNativeApi.cs | Strengthens extraction validation and failure handling. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| if (closeResult != 0) | ||
| { | ||
| return IntPtr.Zero; |
| return; | ||
| } | ||
|
|
||
| if (module.Name.Length > UpdatableHelpModuleInfo.MaxModuleNameLength) |
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.