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

XrdHttp: Prevent segmentation fault when using http.gridmap #741

Merged
merged 1 commit into from
Jun 13, 2018

Conversation

mpatrascoiu
Copy link
Contributor

XrdHttp with the http.gridmap on results in a segmentation fault.

The array bufname[64] is passed with 127 as the array size to the DN2user translation function.
This eventually generates a segmentation fault as the DN2user function performs memset on the array and the received array size.

This change passes sizeof(bufname) for the array size.
Also, the size of the array is increased to 256.

@ffurano ffurano merged commit 53038e1 into xrootd:master Jun 13, 2018
@mpatrascoiu mpatrascoiu deleted the XrdHttpGridmapFix branch June 22, 2018 10:03
@mpatrascoiu mpatrascoiu restored the XrdHttpGridmapFix branch June 22, 2018 10:03
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