Bug 11472 - Uninitialized member being used before set
Summary: Uninitialized member being used before set
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-31 11:53 PST by David Carson
Modified: 2011-08-12 13:07 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Carson 2006-10-31 11:53:57 PST
In kjs/property_map.cpp
In PropertyMap::mark()

  Entry *entries = _table->entries;

we are seeing a warning stating "Use of uninitialised value of size 4"

I'm thinking it's the entries array element 0 not being initialized in
the PropertyMapHashTable

struct PropertyMapHashTable
{
   int sizeMask;
   int size;
   int keyCount;
   int sentinelCount;
   int lastIndexUsed;
   PropertyMapHashTableEntry entries[1];
};

Though not 100% sure.
Comment 1 Geoffrey Garen 2006-10-31 13:54:11 PST
Do you have steps to reproduce?
Comment 2 Gavin Barraclough 2011-08-12 13:07:18 PDT
This code no longer exists, at least not in a form anything like this. :-)