electron/shell
trop[bot] 00c0948e7b
refactor: take a uint8_t span in ValidateIntegrityOrDie() (#43614)
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:16:51 -05:00
..
app fix: delete UvTaskRunner's timers only after they're closed (#43598) 2024-09-06 11:18:52 -05:00
browser fix: confirm a v8::Value is a v8::Object before casting it (#43603) 2024-09-06 15:26:33 -05:00
common refactor: take a uint8_t span in ValidateIntegrityOrDie() (#43614) 2024-09-06 22:16:51 -05:00
renderer fix: gin_helper::MicrotasksScope instantiation (#43209) 2024-08-05 21:46:51 -05:00
services/node fix: MessagePort closing unexpectedly with non-cloneable objects (#42580) 2024-06-19 16:43:36 -04:00
utility refactor: run Windows SelectFileDialog out of process (#42825) 2024-07-09 19:03:13 +02:00