#437 Segfault in libpath_utils if buffer for make_path_absolute() is too small
Closed: Fixed None Opened 14 years ago by sgallagh.

If make_path_absolute() is passed a variable that is not allocated large enough to hold the resulting absolute path, the function should fail and return an empty string for the path. Instead, it is segfaulting.

The reason is that when we detect the failure condition, we are writing a NULL byte into the buffer after the end of it, rather than at its first position as expected.


Fixed by e365b70

fixedin: => 1.1.1
resolution: => fixed
status: new => closed
tests: 1 => 0
testsupdated: 0 => 1

Fields changed

rhbz: => 0

Metadata Update from @sgallagh:
- Issue assigned to sgallagh
- Issue set to the milestone: SSSD 1.1.1

7 years ago

SSSD is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in SSSD's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/SSSD/sssd/issues/1479

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Login to comment on this ticket.

Metadata