electron/shell
trop[bot] 39258d20d4
refactor: take a uint8_t span in ValidateIntegrityOrDie() (#43613)
refactor: take a uint8_t span in ValidateIntegrityOrDie()

Doing some groundwork for fixing unsafe base::File() APIs:

- Change ValidateIntegrityOrDie() to take a span<const uint8_t> arg.
  We'll need this to migrate asar's base::File API calls away from the
  ones tagged `UNSAFE_BUFFER_USAGE` because the safe counterparts use
  span<uint8_t> too.

- Simplify ValidateIntegrityOrDie()'s implementation by using
  crypto::SHA256Hash() instead of reinventing the wheel.

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
2024-09-06 22:17:03 -05:00
..
app fix: delete UvTaskRunner's timers only after they're closed (#43599) 2024-09-06 14:18:51 -05:00
browser refactor: NativeWindow::Create() returns a unique_ptr (#43606) 2024-09-06 19:29:50 -05:00
common refactor: take a uint8_t span in ValidateIntegrityOrDie() (#43613) 2024-09-06 22:17:03 -05:00
renderer refactor: declare gin::Wrapper subclasses as final (#43566) 2024-09-04 20:37:51 -05:00
services/node refactor: declare gin::Wrapper subclasses as final (#43566) 2024-09-04 20:37:51 -05:00
utility refactor: run Windows SelectFileDialog out of process (#42780) 2024-07-08 10:31:10 +02:00