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

presence_dialoginfo: Fix bounds checking by using a helper function. #177

Merged
merged 1 commit into from Mar 26, 2014

Conversation

wdoekes
Copy link
Contributor

@wdoekes wdoekes commented Mar 12, 2014

Reported by: dsandras

About the bound checking error, the code was cut&pasted from another
place in the same file where the same error is still present:
...

Also I replaced a heap str with a stack one in build_dialoginfo. This
one wasn't freed either unless an error condition was hit.

Reported by: dsandras
> About the bound checking error, the code was cut&pasted from another
> place in the same file where the same error is still present:
> ...

Also I replaced a heap str with a stack one in build_dialoginfo. This
one wasn't freed either unless an error condition was hit.
LM_ERR("while allocating memory\n");
return NULL;
}
memset(pres_uri, 0, sizeof(str));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Memset just before setting it.

bogdan-iancu added a commit that referenced this pull request Mar 26, 2014
presence_dialoginfo: Fix bounds checking by using a helper function.
@bogdan-iancu bogdan-iancu merged commit ff937c8 into OpenSIPS:master Mar 26, 2014
@bogdan-iancu
Copy link
Member

@wdoekes , thanks a lot for this fix ! I uploaded it on all maintained versions !!

@wdoekes wdoekes deleted the wjd-fix_dialogaggr_bounds branch September 16, 2015 12:07
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.

None yet

2 participants