| Previous | Next |
| PEERDIST_ERROR_ALREADY_COMPLETED | PEERDIST_ERROR_VERSION_UNSUPPORTED |
PEERDIST_ERROR_OUT_OF_BOUNDS
An operation accessed data beyond the bounds of valid data.
PEERDIST_ERROR_OUT_OF_BOUNDS is Win32 error 4061 (0xFDD) and belongs to Peer Distribution and BranchCache content range validation.
Troubleshooting steps
- Record total content length, overlapped offset, requested length, and arithmetic before the API call.
- Record the exact PeerDist function involved in content range validation.
What to verify
Verify whether an offset or length addresses bytes outside the valid content extent. Check total content length, overlapped offset, requested length, and arithmetic before the API call; record the exact PeerDist function involved in content range validation.
Handling, retry, and recovery
Validate range addition for overflow and clamp only when the protocol explicitly permits partial data.
Difference from nearby codes
MISSING_DATA concerns a valid range that cannot be found; OUT_OF_BOUNDS says the range itself is invalid.
Practical example
A 32-bit length calculation wraps before PeerDistClientAddData and produces an offset beyond end-of-content; checked arithmetic fixes it.
References
- Microsoft: System Error Codes (4000–5999) — reference for error 4061.
- Microsoft: Peer Distribution API — reference for error 4061.
- Microsoft: peerdist.h API reference — reference for error 4061.
- Microsoft: BranchCache — reference for error 4061.
Looking for a different code? Search another status or error code.