add winos.file_signature function to retrieve file signature information#7326
add winos.file_signature function to retrieve file signature information#7326luadebug wants to merge 54 commits intoxmake-io:devfrom
Conversation
Summary of ChangesHello @luadebug, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request enhances the Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces a new winos.file_signature function to retrieve file signature information on Windows. The implementation correctly uses the WinVerifyTrust and CryptoAPIs to check the signature and extract the signer's name.
I've provided a couple of suggestions. One is a high-severity security improvement to enable certificate revocation checks, which are currently disabled. The other is a medium-severity suggestion to refactor a section of the code to improve its readability and maintainability by using a goto-based cleanup pattern.
Overall, this is a good addition. Please consider the feedback to make the new function more robust and secure.
…fullpath as file_signature would not work without full path provided
|
OK I think it is ready to review. |
|
CC: @waruqi
|
CC: @waruqi |
Added reference to GitHub issue regarding GIGA-BYTE signed gcc.exe.
|
Arch Linux fail is false positive here. |
|
Does it work now? |
Does it work now? |
I can't test for now. I will look into that later maybe. Currently mine Oracle VirtualBox has broken and I am installing Windows 11 24H2 via virt-manager instead of Oracle VirtualBox. Sorry. |
|
? |
I broke branch accidentally. |



TODO that still does not work.
Moved here from tboox/tbox#308
Resolves: #5629
Idea is that we can check for signature owner name GIGA-BYTE ... and if that is it and executable name is GCC.exe we should skip/filter out that .exe from find_tool("gcc")/find_gcc function at that case.
Currently I see:

Certainly mine wrapper over find_gcc/find_tool might be not correct... :/
Yet they should return void or either another GCC.exe. Maybe this would work or maybe not.