Intent-Code Divergence
Medium
- Confidence
- 98% confidence
- Finding
- generate_report returns unique_products[:max_products], but max_products is not defined in that function scope. This causes a runtime NameError, producing a denial of service for the script and preventing report generation whenever the function executes successfully to that point.
