When using gui.clone_tree, the returned data structure contains nodes in a table that can be referenced by the ids defined in the original prototype passed into the gui.clone_tree function. Now, these key are seemingly truncated before being copied into the newly created table. A node with the id “aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa” in the prototype (a string larger than 55 characters), would not exist in the cloned table. It would instead have an id of a truncated version of the same string, opening up the possibility for (hash) collisions in the resulting table.
2 Likes