Changeset 139801 in webkit


Ignore:
Timestamp:
Jan 15, 2013 3:45:14 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Crash when saving history with no items in it.
https://bugs.webkit.org/show_bug.cgi?id=104261

Patch by peavo@outlook.com <peavo@outlook.com> on 2013-01-15
Reviewed by Darin Adler.

  • WebHistory.cpp:

(WebHistory::saveHistoryGuts): Added null pointer check

Location:
trunk/Source/WebKit/win
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/win/ChangeLog

    r139694 r139801  
     12013-01-15  peavo@outlook.com  <peavo@outlook.com>
     2
     3        Crash when saving history with no items in it.
     4        https://bugs.webkit.org/show_bug.cgi?id=104261
     5
     6        Reviewed by Darin Adler.
     7
     8        * WebHistory.cpp:
     9        (WebHistory::saveHistoryGuts): Added null pointer check
     10
    1112013-01-09  Levi Weintraub <leviw@chromium.org>
    212
  • trunk/Source/WebKit/win/WebHistory.cpp

    r132916 r139801  
    382382    RetainPtr<CFDataRef> data = this->data();
    383383
     384    if (!data.get())
     385        return E_FAIL;
     386
    384387    RetainPtr<CFWriteStreamRef> stream(AdoptCF, CFWriteStreamCreateWithFile(kCFAllocatorDefault, url));
    385388    if (!stream)
Note: See TracChangeset for help on using the changeset viewer.