Print

Print


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.
You can view, comment on, or merge this pull request online at:

  https://github.com/xrootd/xrootd/pull/741

-- Commit Summary --

  * Prevent segmentation fault when using http.gridmap

-- File Changes --

    M src/XrdHttp/XrdHttpProtocol.cc (4)

-- Patch Links --

https://github.com/xrootd/xrootd/pull/741.patch
https://github.com/xrootd/xrootd/pull/741.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/xrootd/xrootd/pull/741

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1