CESNET / ipfixcol

IPFIXcol is an implementation of an IPFIX (RFC 7011) collector
Other
64 stars 37 forks source link

Profiles.cpp: Wrapper object use after free #79

Closed ghost closed 9 years ago

ghost commented 9 years ago

Several methods in profiles.cpp, namely profile_get_name and profile_get_path, as well as channel_get_name and channel_get_path, return a pointer to an internal element of a Profile. As such, once a Profile object is destroyed, the pointer becomes invalid, yielding unexpected behavior.

mikeek commented 9 years ago

That's true, but Profile object is not destroyed while collector is running. It is held by configurator structure which is released after closing all plugins.

ghost commented 9 years ago

Agreed, thanks for checking. I propose to close this ticket.