[webkit-changes] [WebKit/WebKit] 653105: Use CheckedRef for SQLiteStatement::m_database

Sihui noreply at github.com
Tue Oct 24 15:25:59 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 65310540fa6307bbc054eb40b9e90f20985f51b0
      https://github.com/WebKit/WebKit/commit/65310540fa6307bbc054eb40b9e90f20985f51b0
  Author: Sihui Liu <sihui_liu at apple.com>
  Date:   2023-10-24 (Tue, 24 Oct 2023)

  Changed paths:
    M Source/WebCore/platform/sql/SQLiteStatement.cpp
    M Source/WebCore/platform/sql/SQLiteStatement.h

  Log Message:
  -----------
  Use CheckedRef for SQLiteStatement::m_database
https://bugs.webkit.org/show_bug.cgi?id=263597
rdar://117422901

Reviewed by Chris Dumez.

To make it more safe to use.

* Source/WebCore/platform/sql/SQLiteStatement.cpp:
(WebCore::SQLiteStatement::SQLiteStatement):
(WebCore::SQLiteStatement::~SQLiteStatement):
(WebCore::SQLiteStatement::step):
* Source/WebCore/platform/sql/SQLiteStatement.h:
(WebCore::SQLiteStatement::database):

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




More information about the webkit-changes mailing list