Title:
Bug 81884:Values for certain struct keys can be referenced by other keys, despite those other keys never being set
| View in TrackerStatus/Resolution/Reason: Closed/Withdrawn/
Reporter/Name(from Bugbase): / Bang Turis (BTuris10000)
Created: 01/29/2010
Components: Language, Datastructure
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 9,0,0,251028 /
Priority/Frequency: Major / Unknown
Locale/System: English / Linux Red Hat All
Vote Count: 3
Duplicate ID: CF-3040856
Problem:
Values for certain struct keys can be referenced by other keys, despite those other keys never being set.
Method:
I'm not sure if this works for all install configurations, but run the following example on a CF9 appserver. I use a single pair of conflicting keys here, but we were able to find hundreds more by looping over generated 2 and 3 letter key values.<cfset a = { AO = "foo" } /><cfset b = { AO = "foo", B0 = "bar" } /><cfoutput>The following should throw an error. Instead both keys refer to the same value.<br />Struct a: <cfdump var="#a#" /><br />a.AO: #a.AO#<br />a.B0: #a.B0#<hr />The following should show a struct with 2 distinct keys and values. Instead it contains a single key, "AO", with a value of "bar".<br />Struct b: <cfdump var="#b#" />
Result:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3040871
External Customer Info:
External Company:
External Customer Name: Bang Turis
External Customer Email: 113E39D847D584AE992015A7
External Test Config: 01/29/2010
Attachments:
Comments: