Page MenuHomeFreeBSD

rtld.c: avoid double-free on dso load failure in do_load_object()
ClosedPublic

Authored by kib on Tue, Oct 6, 8:27 AM.
Tags
None
Referenced Files
F175354755: D60402.id188883.diff
Sat, Oct 10, 6:01 AM
F175354517: D60402.id188851.diff
Sat, Oct 10, 5:59 AM
F175279500: D60402.id188851.diff
Fri, Oct 9, 4:08 PM
F175260505: D60402.diff
Fri, Oct 9, 12:49 PM
Unknown Object (File)
Thu, Oct 8, 10:39 AM
Unknown Object (File)
Thu, Oct 8, 6:31 AM
Unknown Object (File)
Thu, Oct 8, 12:25 AM
Unknown Object (File)
Thu, Oct 8, 12:23 AM
Subscribers

Details

Summary
The obj->path is assigned directly from the path argument, and
load_object() frees the path on do_load_object() failure.  Do not free
it in obj_free() on the error path.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable