[webkit-dev] SLL_Pop list is not checked for NULL

Luka Napotnik luka.napotnik at gmail.com
Mon Aug 3 05:00:26 PDT 2009


In JavaScriptCore/wtf/FastMalloc.cpp:696

The list should be checked for NULL. Eg.

static inline void *SLL_Pop(void **list) {
  if (!list || !(*list))
    return NULL;

  void *result = *list;
  *list = SLL_Next(*list);
  return result;
}

Greets,
Luka


More information about the webkit-dev mailing list