trailofbits.go.invalid-usage-of-modified-variable.invalid-usage-of-modified-variable

Variable res is likely modified and later used on error. In some cases this could result in panics due to a nil dereference

Fixed
github.com/l3montree-dev/devguard/cmd/devguard-scanner/sast
/builds/open-code/badgebackend/badge-api/pkg/badges/observe/observer.go
  • T

    Tim Bastin detected trailofbits.go.invalid-usage-of-modified-variable.invalid-usage-of-modified-variable

  • T

    Tim Bastin fixed trailofbits.go.invalid-usage-of-modified-variable.invalid-usage-of-modified-variable

Reopen this vulnerability

You can reopen this vuln, if you plan to mitigate the risk now, or accepted this vuln by accident.

Rule Details

Variable $X is likely modified and later used on error. In some cases this could result in panics due to a nil dereference

Copyright © 2025 L3montree GmbH and the DevGuard Contributors. All rights reserved. Version 667098114b5ef45c7830e7aa599604fa65eb818f