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

Add missing CKNULL after XMALLOC #2

Closed
wants to merge 3 commits into from
Closed

Add missing CKNULL after XMALLOC #2

wants to merge 3 commits into from

Conversation

mansourmoufid
Copy link

I noticed a single line in SCimpProtocol.c where CKNULL was missing after an XMALLOC.

In this branch there is a Coccinelle semantic patch which found a couple other instances. The first rule matches any XMALLOC calls; the second and third match those which are followed by a NULL check; and the third matches any remaining and adds a CKNULL.

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