Made provisory test for directory record overflow permanent

This commit is contained in:
Thomas Schmitt 2011-01-16 11:10:08 +01:00
parent 68c3ae522e
commit a69f45e8cd

View File

@ -1395,16 +1395,13 @@ int rrip_get_susp_fields(Ecma119Image *t, Ecma119Node *n, int type,
}
}
/* <<< ts B01222 : For testing only */
if (info->suf_len + 28 > space) {
fprintf(stderr,
"libisofs_debug: Directory Record overflow. name='%s' , info->suf_len=%d > space=%d - 28\n",
iso_msg_submit(t->image->id, ISO_ASSERT_FAILURE, 0,
"Directory Record overflow. name='%s' , suf_len=%d > space=%d - 28\n",
node->iso_name, (int) info->suf_len, (int) space);
return ISO_ASSERT_FAILURE;
}
if (type == 0) {
size_t sua_free; /* free space in the SUA */
int nm_type = 0; /* 0 whole entry in SUA, 1 part in CE */