Skip to content

Commit

Permalink
fix random bytes in ION_COLLECTION_NODE->data
Browse files Browse the repository at this point in the history
  • Loading branch information
m6w6 authored and tgregg committed Apr 6, 2022
1 parent 8511fea commit 1c57bf9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ionc/ion_collection.c
Original file line number Diff line number Diff line change
Expand Up @@ -308,10 +308,9 @@ ION_COLLECTION_NODE *_ion_collection_alloc_node_helper( ION_COLLECTION *collecti
}

// clean up the node before anyone uses it
node->_next = NULL;
node->_prev = NULL;
memset(node, 0, collection->_node_size);

return node;
return node;
}

ION_COLLECTION_NODE *_ion_collection_push_node_helper(ION_COLLECTION *collection)
Expand Down

0 comments on commit 1c57bf9

Please sign in to comment.