Skip to content

Audit for existing casting/nil/panic vulnerabilities #96

@bufdev

Description

@bufdev

Example:

logrus.Warnf("Failed to initialize %s: %v",

  • How are we sure that e.Value is not nil?
  • How are we sure that e.Value can be case to ClusterManager?

Both of these should be checked, ie e.Value == nil -> error, clusterManager, ok := e.Value.(ClusterManager)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions