You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is due to the lack of error handling for the getpwuid_r() call in the username() function in NetUtils.cc
According to the getpwuid_rmanpage the function is not always successful. Failing to handle the errors but continuing to use the passwd struct can result in the use of a corrupted data structure which causes a segfault.
Additional information:
Stack trace of the segfault
The text was updated successfully, but these errors were encountered:
Original report (archived issue) by Poh Zhi-Ee (Bitbucket: Poh Zhi-Ee).
This is due to the lack of error handling for the
getpwuid_r()
call in theusername()
function in NetUtils.ccAccording to the
getpwuid_r
manpage the function is not always successful. Failing to handle the errors but continuing to use thepasswd
struct can result in the use of a corrupted data structure which causes a segfault.Additional information:
Stack trace of the segfault
The text was updated successfully, but these errors were encountered: