Our website uses cookies to enhance your browsing experience.
Accept
to the top
>
>
>
Examples of errors detected by the...

Examples of errors detected by the V1099 diagnostic

V1099. Using the function of uninitialized derived class while initializing the base class will lead to undefined behavior.


Battle for Wesnoth

V1099 [CWE-908] Using the 'window_id' function of uninitialized derived class while initializing the 'modal_dialog' base class will lead to undefined behavior. install_dependencies.hpp 29


class install_dependencies : public modal_dialog
{
public:
  explicit install_dependencies(const addons_list& addons)
    : modal_dialog(window_id()), addons_(addons)           // <=
  {}
....
private:
  virtual const std::string& window_id() const override;
....
}