Bug fix: Memory corruption when reading bootable image that was truncated

before the storage location of the boot catalog
This commit is contained in:
2012-04-19 09:29:31 +02:00
parent 81dd6ce55a
commit f384961808
2 changed files with 12 additions and 6 deletions

View File

@ -55,6 +55,8 @@ void iso_node_ref(IsoNode *node)
*/
void iso_node_unref(IsoNode *node)
{
if (node == NULL)
return;
if (--node->refcount == 0) {
switch (node->type) {
case LIBISO_DIR: