[roll] Roll fuchsia [skip-block] Fix integer overflows in validation

SkipBlockDevice::ValidateOperationLocked performs size and offset
validation for ReadWriteOperation and WriteBytesOperation. However, the
calculations op.block + op.block_count and op.offset + op.size could
overflow, potentially bypassing the partition size checks.

Use safemath checked arithmetic functions (CheckAdd, CheckMul, and
CheckedNumeric) to prevent wrapping during validation checks.

Original-Original-Bug: 528399619
Test: fx test skip-block-test
Original-Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1687994
Original-Original-Revision: 8feea1eb6a02893b884147eebd1bf4848a969825
GitOrigin-RevId: d2f64ffcc355f3eeed49d561c0aa24f904cad139
Change-Id: I4f75684ddee554fd667225008cb877fe7a238028
Reviewed-on: https://fuchsia-review.googlesource.com/c/integration/+/1689741
Cr-Commit-Position: refs/heads/main@{#196008}
1 file changed
tree: 79069ecd6cf4c58756f88c24d497e6bdeafbb886
  1. ctf/
  2. git-hooks/
  3. infra/
  4. third_party/
  5. cobalt
  6. flower
  7. jiri.lock
  8. MILESTONE
  9. minimal
  10. prebuilts
  11. README.md
  12. stem
  13. test_durations
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance in one of the communication channels documented at get involved.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.