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

Avoid reference to uninitialized local used for sbuff (CID #1547825) #5205

Closed
wants to merge 1 commit into from

Conversation

jejones3141
Copy link
Contributor

Referring to fr_sbuff_start() rather than the local buffer used in a temporary sbuff avoids the issue of coverity not associating the local buffer with the FR_SBUFF_OUT() using it.

Referring to fr_sbuff_start() rather than the local buffer used in
a temporary sbuff avoids the issue of coverity not associating the
local buffer with the FR_SBUFF_OUT() using it.
@alandekok
Copy link
Member

I've pushed a slightly different fix. We can use fr_sbuff_used(), and avoid a strlen()

@alandekok alandekok closed this Oct 16, 2023
@jejones3141 jejones3141 deleted the one_more_uninit branch October 17, 2023 00:18
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

Successfully merging this pull request may close these issues.

2 participants