Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TilakMaddy committed Mar 10, 2025
1 parent 0b0458b commit 22de492
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 17 deletions.
6 changes: 2 additions & 4 deletions aderyn_core/src/detect/detector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ pub(crate) enum IssueDetectorNamePool {
UnprotectedInitializer,
RevertsAndRequiresInLoops,
DivisionBeforeMultiplication,
UnsafeCastingDetector,
UnsafeCast,
EnumerableLoopRemoval,
ExperimentalEncoder,
IncorrectShiftOrder,
Expand Down Expand Up @@ -342,9 +342,7 @@ pub fn request_issue_detector_by_name(detector_name: &str) -> Option<Box<dyn Iss
IssueDetectorNamePool::DivisionBeforeMultiplication => {
Some(Box::<DivisionBeforeMultiplicationDetector>::default())
}
IssueDetectorNamePool::UnsafeCastingDetector => {
Some(Box::<UnsafeCastingDetector>::default())
}
IssueDetectorNamePool::UnsafeCast => Some(Box::<UnsafeCastingDetector>::default()),
IssueDetectorNamePool::EnumerableLoopRemoval => {
Some(Box::<EnumerableLoopRemovalDetector>::default())
}
Expand Down
6 changes: 4 additions & 2 deletions aderyn_core/src/detect/high/unsafe_casting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ impl IssueDetector for UnsafeCastingDetector {
}

fn title(&self) -> String {
String::from("Unsafe Casting")
String::from(
"Unsafe Casting of integers can lead to truncation and loss of significant digits.",
)
}

fn description(&self) -> String {
Expand All @@ -100,7 +102,7 @@ impl IssueDetector for UnsafeCastingDetector {
}

fn name(&self) -> String {
format!("{}", IssueDetectorNamePool::UnsafeCastingDetector)
format!("{}", IssueDetectorNamePool::UnsafeCast)
}
}

Expand Down
2 changes: 1 addition & 1 deletion reports/adhoc-sol-files-highs-only-report.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions reports/prb-math-report.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions reports/report.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions reports/report.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion reports/report.sarif

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions reports/templegold-report.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 22de492

Please sign in to comment.