nzbgetcom/nzbget

Get rid of potential problems with dangling pointers and buffer overflows

Closed this issue · 0 comments

Is there already an issue for your problem?

  • I have checked older issues, open and closed

NZBGet Version

v24.2-stable

Platform

All

Environment

Any

Current Behavior

std::string_view::data(), doesn’t guarantee the character array will be null-terminated: FileSystem.cpp

std::to_string(*val) creates a temporary object and a dangling pointer will remain after its destruction: Extension.cpp

Expected Behavior

Potential problems with dangling pointers and buffer overflows must be resolved.

Steps To Reproduce

No response

Logs

No response

Extra information

No response