Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Command Line Help Prints Nothing #1872

Open
shmuelie opened this issue Nov 15, 2024 · 2 comments
Open

Bug: Command Line Help Prints Nothing #1872

shmuelie opened this issue Nov 15, 2024 · 2 comments

Comments

@shmuelie
Copy link

Description

When I run cswinrt.exe -?, no help is printed

Steps To Reproduce

Run cswinrt.exe -?

Expected Behavior

To see help printed

Version Info

CsWinRT: 2.2.0

Additional Context

No response

@manodasanW
Copy link
Member

I am able to repro this and it seems to have changed in behavior in the last build. Something might have happened when we added a new option.

@dongle-the-gadget
Copy link
Contributor

I've figured out the problem. It is a buffer overrun when we tried to print -idic_exclusiveto. The buffer size of write_printf is 128 whereas -idic_exclusiveto is 142 characters (not including the null-terminator). A temporary workaround would be to make the buffer larger or reduce the number of characters in it, but I feel like we should have a more scalable solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants