Commit b0dbfcc
Fix arithmetic overflow in Test-PasswordQuality with empty dictionary file
The ReportProgress method would divide by zero when fileLength was 0.
Add an early return when fileLength <= 0 to prevent the division.
Fixes #219
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 2f14e8f commit b0dbfcc
File tree
1 file changed
+4
-1
lines changed- Src/DSInternals.PowerShell/Commands/Misc
1 file changed
+4
-1
lines changedLines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
442 | 442 | | |
443 | 443 | | |
444 | 444 | | |
445 | | - | |
| 445 | + | |
446 | 446 | | |
447 | 447 | | |
448 | 448 | | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
449 | 452 | | |
450 | 453 | | |
451 | 454 | | |
| |||
0 commit comments