[webkit-changes] [WebKit/WebKit] 5a6e1a: [WTF] WTFReportBacktraceWithPrefixAndStackDepth() ...

Wenson Hsieh noreply at github.com
Sun Nov 17 15:37:58 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 5a6e1a9ddc36bed206fc035c73a4e8e61e60138a
      https://github.com/WebKit/WebKit/commit/5a6e1a9ddc36bed206fc035c73a4e8e61e60138a
  Author: Wenson Hsieh <wenson_hsieh at apple.com>
  Date:   2024-11-17 (Sun, 17 Nov 2024)

  Changed paths:
    M Source/WTF/wtf/Assertions.cpp

  Log Message:
  -----------
  [WTF] WTFReportBacktraceWithPrefixAndStackDepth() crashes after 286344 at main
https://bugs.webkit.org/show_bug.cgi?id=283269

Reviewed by Abrar Rahman Protyasha.

Use `resize()` instead of `reserveInitialCapacity()` here — the latter only expands the backing
memory to the given capacity, but the initial size of the vector is still 0. This caused `subspan`
to crash immediately when attempting to access the subspan starting from `kDefaultFramesToSkip`.

* Source/WTF/wtf/Assertions.cpp:

Canonical link: https://commits.webkit.org/286710@main



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list