electron/shell/common
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
..
api fix: gin_helper::MicrotasksScope instantiation (#43209) 2024-08-05 21:46:51 -05:00
asar refactor: take a uint8_t span in ValidateIntegrityOrDie() (#43614) 2024-09-06 22:16:51 -05:00
extensions refactor: move impl functions into private namespace (#43410) 2024-08-21 21:29:25 -05:00
gin_converters fix: don't use deprecate-soon class v8::String::Value (#43553) 2024-09-04 12:54:19 -05:00
gin_helper refactor: move impl functions into private namespace (#43410) 2024-08-21 21:29:25 -05:00
mac chore: replace absl::optional<T> with std::optional<T> (#40928) 2024-01-10 16:23:35 -06:00
resources/mac
application_info.cc fix: devtools allow restoring saved dock state on Windows (#39734) 2023-09-07 17:14:01 +09:00
application_info.h fix: devtools allow restoring saved dock state on Windows (#39734) 2023-09-07 17:14:01 +09:00
application_info_linux.cc
application_info_mac.mm chore: bump chromium to 118.0.5975.0 (main) (#39531) 2023-09-01 15:54:59 +09:00
application_info_win.cc
color_util.cc chore: remove unused std includes (#38767) 2023-06-14 11:07:18 -07:00
color_util.h feat: replace BrowserView with WebContentsView (#35658) 2023-12-13 13:01:03 -08:00
crash_keys.cc refactor: remove banned std::to_string() calls (#41087) 2024-01-24 16:43:31 -06:00
crash_keys.h
electron_command_line.cc
electron_command_line.h
electron_constants.cc build: remove enable_run_as_node build flag (#38413) 2023-06-08 16:40:08 -04:00
electron_constants.h build: remove enable_run_as_node build flag (#38413) 2023-06-08 16:40:08 -04:00
electron_paths.h
heap_snapshot.cc chore: enable check raw ptr fields (#38167) 2023-05-11 16:07:39 -04:00
heap_snapshot.h
key_weak_map.h refactor: simplify KeyWeakMap impl (#43484) 2024-08-26 18:10:34 -04:00
keyboard_util.cc refactor: remove banned std::to_string() calls (#41087) 2024-01-24 16:43:31 -06:00
keyboard_util.h chore: migrate base::StringPiece to std::string_view (#40915) 2024-01-10 19:00:37 -06:00
language_util.h
language_util_linux.cc
language_util_mac.mm
language_util_win.cc chore: bump chromium to 121.0.6147.0 (main) (#40523) 2023-11-28 13:40:12 -08:00
logging.cc refactor: move impl functions into private namespace (#43410) 2024-08-21 21:29:25 -05:00
logging.h chore: add ELECTRON_ prefix to C++ include guards (#31925) 2021-11-22 16:34:31 +09:00
node_bindings.cc fix: gin_helper::MicrotasksScope instantiation (#43209) 2024-08-05 21:46:51 -05:00
node_bindings.h fix: delete UvTaskRunner's timers only after they're closed (#43598) 2024-09-06 11:18:52 -05:00
node_bindings_linux.cc refactor: NodeBindings::Create() returns a unique_ptr (#43393) 2024-08-21 10:56:59 -04:00
node_bindings_linux.h
node_bindings_mac.cc refactor: NodeBindings::Create() returns a unique_ptr (#43393) 2024-08-21 10:56:59 -04:00
node_bindings_mac.h
node_bindings_win.cc refactor: NodeBindings::Create() returns a unique_ptr (#43393) 2024-08-21 10:56:59 -04:00
node_bindings_win.h chore: remove redundant code in node integration (#33500) 2022-03-29 20:09:42 -07:00
node_includes.h chore: rename built-in modules to bindings to match naming update in node (#37182) 2023-02-09 10:31:38 +09:00
node_util.cc chore: remove node patches by using the preload feature (#41080) 2024-01-24 09:54:32 -06:00
node_util.h fix: only remove hijackable envs from foreign parent (#41079) 2024-01-24 09:51:27 -06:00
options_switches.cc chore: bump chromium to 126.0.6445.0 (31-x-y) (#42119) 2024-05-13 20:19:31 +02:00
options_switches.h chore: bump chromium to 126.0.6445.0 (31-x-y) (#42119) 2024-05-13 20:19:31 +02:00
platform_util.cc
platform_util.h feat: update app.{set|get}LoginItemSettings(settings) (#37244) 2023-10-16 12:25:11 -04:00
platform_util_internal.h
platform_util_linux.cc fix: Launch apps with XDG_ACTIVATION_TOKEN in ozone/wayland (#43578) 2024-09-05 15:16:49 -05:00
platform_util_mac.mm chore: improve error message on failed SMApp register/unregister (#42557) 2024-06-18 14:15:36 +02:00
platform_util_win.cc fix: normalize path before calling showItemInFolder and openPath (#41642) 2024-03-22 10:28:44 -04:00
plugin_info.cc chore: bump chromium to 123.0.6312.5 (main) (#41337) 2024-02-21 15:27:05 -05:00
plugin_info.h
process_util.cc refactor: use process_util.h helpers (#38574) 2023-06-06 17:19:13 +09:00
process_util.h refactor: use process_util.h helpers (#38574) 2023-06-06 17:19:13 +09:00
skia_util.cc
skia_util.h
thread_restrictions.h
v8_value_serializer.cc fix: gin_helper::MicrotasksScope instantiation (#43209) 2024-08-05 21:46:51 -05:00
v8_value_serializer.h
world_ids.h