Changeset b658c5d in mainline


Ignore:
Timestamp:
2010-04-17T02:00:38Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5ba201d
Parents:
9d6bfa5
Message:

fix possible garbage dereference (subtree.table always needs to be initialized to NULL)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/sysinfo/sysinfo.c

    r9d6bfa5 rb658c5d  
    5353        item->val_type = SYSINFO_VAL_UNDEFINED;
    5454        item->subtree_type = SYSINFO_SUBTREE_NONE;
     55        item->subtree.table = NULL;
    5556        item->next = NULL;
    5657       
     
    116117    sysinfo_item_t **psubtree)
    117118{
     119        ASSERT(psubtree != NULL);
     120       
    118121        if (*psubtree == NULL) {
    119122                /* No parent */
Note: See TracChangeset for help on using the changeset viewer.