Closed
Description
Earlier this morning we started seeing Brakeman crash with error:
gems/brakeman-5.2.0/lib/brakeman/warning.rb:251:in `sprintf': can't convert nil into Integer (TypeError)
I traced the error and found that it crashed while reporting a warning for CheckEOLRuby
. The root cause appears to be that the warning symbol :pending_eol_ruby
was introduced recently here in #1660, but never had a numeric code registered.
I was able to fix the problem by editing https://github.com/presidentbeef/brakeman/blob/main/lib/brakeman/warning_codes.rb to assign :pending_eol_ruby
a numeric code.
Metadata
Metadata
Assignees
Labels
No labels
Activity
presidentbeef commentedon Jan 30, 2022
Ah, embarrassing. I'll get a fix out ASAP.
Add warnings codes for EOL software
Add warnings codes for EOL software (#1673)
presidentbeef commentedon Jan 30, 2022
Fixed with 5.2.1. Thanks and apologies!
klazuka commentedon Jan 30, 2022
@presidentbeef no problem. Thanks for the quick fix!