Changeset 139890 in webkit


Ignore:
Timestamp:
Jan 16, 2013 10:00:17 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[GTK] Safeguard against possible NULL-dereference
https://bugs.webkit.org/show_bug.cgi?id=104931

Patch by Claudio Saavedra <Claudio Saavedra> on 2013-01-16
Reviewed by Martin Robinson.

  • accessibility/atk/WebKitAccessibleWrapperAtk.cpp:

(webkitAccessibleGetIndexInParent): Move the NULL-safeguard to a
place where it actually makes sense.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r139889 r139890  
     12013-01-16  Claudio Saavedra  <csaavedra@igalia.com>
     2
     3        [GTK] Safeguard against possible NULL-dereference
     4        https://bugs.webkit.org/show_bug.cgi?id=104931
     5
     6        Reviewed by Martin Robinson.
     7
     8        * accessibility/atk/WebKitAccessibleWrapperAtk.cpp:
     9        (webkitAccessibleGetIndexInParent): Move the NULL-safeguard to a
     10        place where it actually makes sense.
     11
    1122013-01-16  Avi Drissman  <avi@google.com>
    213
  • trunk/Source/WebCore/accessibility/atk/WebKitAccessibleWrapperAtk.cpp

    r139250 r139890  
    408408    AccessibilityObject* parent = coreObject->parentObjectUnignored();
    409409
    410     if (!parent)
    411         return -1;
    412 
    413410    if (!parent && isRootObject(coreObject)) {
    414411        AtkObject* atkParent = atkParentOfRootObject(object);
     
    430427    if (parent && parent->isTableRow() && coreObject->isTableCell())
    431428        return getIndexInParentForCellInRow(coreObject);
     429
     430    if (!parent)
     431        return -1;
    432432
    433433    size_t index = parent->children().find(coreObject);
Note: See TracChangeset for help on using the changeset viewer.