-
Notifications
You must be signed in to change notification settings - Fork 12
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
Set application name in macOS driver #9
base: 7.7
Are you sure you want to change the base?
Conversation
You'd commonly want to rebase instead of adding a merge commit as those cause problems. |
It builds fine on my machine. I don't know of any problems on my end. |
…rt-2-revert-1-feat/icon-title-patch Revert "Revert "Revert "Revert "Use exe title name""""
|
||
// Get offset to the last backslash | ||
DWORD last_char_pos = 0; | ||
for (DWORD i = 0; i < len; i++) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
iterating backward will give the same result without multiple reassignments
last_char_pos = i; | ||
} | ||
|
||
if (len && len < ARRAY_SIZE(app_name)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for-loop up above will also fail if this condition is false
possible OOB vulnerability
This pull request adds functionality to set the application name in the macOS driver. The
macdrv_set_application_name
function is implemented to set the application name based on the module file name. This allows for better identification of the application in macOS.