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

Fix uninit value based jump in ppd.c #329

Merged
merged 1 commit into from
Feb 9, 2022

Conversation

rikylescak
Copy link
Contributor

Hi,
valgrind on ppc64le arch complains about jump based on uninitialized memory in ppd.c

@zdohnal zdohnal self-requested a review February 9, 2022 07:55
@zdohnal zdohnal added bug Something isn't working priority-medium labels Feb 9, 2022
@zdohnal zdohnal self-assigned this Feb 9, 2022
@zdohnal zdohnal added this to the 2.4.2 milestone Feb 9, 2022
@@ -3430,7 +3430,7 @@ ppd_update_filters(ppd_file_t *ppd, /* I - PPD file */
srctype[256],
dstsuper[16], /* Destination MIME media type */
dsttype[256],
program[1024], /* Command to run */
program[1024] = {0}, /* Command to run */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The initialization list is used in other places in the code, so the usage is fine.
@rikylescak but all other code in the block are declarations, so I would move the definition of program below it next time.

I'll fix it by myself.

@zdohnal zdohnal merged commit 38454ee into OpenPrinting:master Feb 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority-medium
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants