Skip to content

sonar: drop always-true fileLength bound (S2589) - #399

Merged
MPCoreDeveloper merged 1 commit into
masterfrom
sonar/mechanical-cleanup-4
Sep 4, 2026
Merged

sonar: drop always-true fileLength bound (S2589)#399
MPCoreDeveloper merged 1 commit into
masterfrom
sonar/mechanical-cleanup-4

Conversation

@MPCoreDeveloper

Copy link
Copy Markdown
Owner

S2589 (Storage.Append): fileLength <= int.MaxValue is always true given fileLength <= RangeMarkerReadLimitBytes (32 MB); the (int) cast is already safe.

Validated: SharpCoreDB.Tests 1777/0.

RangeMarkerReadLimitBytes (32 MB) already guarantees the (int) cast is safe, so fileLength <= int.MaxValue is redundant.
@MPCoreDeveloper
MPCoreDeveloper merged commit e3a8c89 into masterSep 4, 2026
4 checks passed
@MPCoreDeveloper
MPCoreDeveloper deleted the sonar/mechanical-cleanup-4 branch September 4, 2026 19:30
@sonarqubecloud

Copy link
Copy Markdown

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@MPCoreDeveloper