You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From Orijtech Cyber's audits of earlybird, we noticed that this code could be hoisted out and made a global given that the regular expression is constructed from a constant/static string per
From Orijtech Cyber's audits of earlybird, we noticed that this code could be hoisted out and made a global given that the regular expression is constructed from a constant/static string per
earlybird/pkg/utils/utils.go
Lines 162 to 163 in 69c7517
to be made
Benefits
Please read more at https://cyber.orijtech.com/scsec/cosmos-go-coding-guide#construct-regexps-once and see a real-world benchmark result
Future proofing
Please install into your CI/CD workflows, our tool staticmajor https://github.com/marketplace/actions/staticmajor-analyzer which will report such issues beforehand.
/cc @elias-orijtech @madflojo
The text was updated successfully, but these errors were encountered: