Skip to content

[v4.1.x] Fix HLSLParser: Always check preprocessor directive stack#995

Open
kblaschke wants to merge 1 commit intoprojectM-visualizer:v4.1.xfrom
kblaschke:fix/4.1.x-hlslparser-unmatched-preprocessor-directives
Open

[v4.1.x] Fix HLSLParser: Always check preprocessor directive stack#995
kblaschke wants to merge 1 commit intoprojectM-visualizer:v4.1.xfrom
kblaschke:fix/4.1.x-hlslparser-unmatched-preprocessor-directives

Conversation

@kblaschke
Copy link
Copy Markdown
Member

Was previously dereferencing the top element without checking for the stack to be empty (e.g. if there are mismatched preprocessor directives). The loop now aborts if there is at least one more closing directive (e.g. #endif) than opening ones.

@kblaschke kblaschke added this to the 4.1.7 milestone Apr 24, 2026
@kblaschke kblaschke self-assigned this Apr 24, 2026
@kblaschke kblaschke added the bug The issue is (potentially) a bug. label Apr 24, 2026
@kblaschke kblaschke changed the title Fix HLSLParser: Always check preprocessor directive stack [v4.1.x] Fix HLSLParser: Always check preprocessor directive stack Apr 24, 2026
@OfficialIncubo
Copy link
Copy Markdown
Contributor

There is an error:
Error: File was unable to be removed Error: EBUSY: resource busy or locked, rmdir 'D:\a\projectm\projectm\vcpkg'

@kblaschke
Copy link
Copy Markdown
Member Author

There is an error: Error: File was unable to be removed Error: EBUSY: resource busy or locked, rmdir 'D:\a\projectm\projectm\vcpkg'

Again some random build server issue, this time the OS didn't release some lock it seems. Happens every now and then, can't control or fix it.

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

Labels

bug The issue is (potentially) a bug.

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants