Commit 41da1bba authored by Petri Hintukainen's avatar Petri Hintukainen

Fix possible uninitialized data (corrupt input)

parent 4159111e
......@@ -387,6 +387,8 @@ static int _search_vds(udfread_block_input *input, int part_number,
udf_trace("reading Volume Descriptor Sequence at lba %u, len %u bytes\n", loc->lba, loc->length);
memset(vds, 0, sizeof(*vds));
/* parse Volume Descriptor Sequence */
for (lba = loc->lba; lba < end_lba; lba++) {
......@@ -465,6 +467,7 @@ static int _validate_logical_volume(const struct logical_volume_descriptor *lvd,
/* UDF 2.60 2.1.5.2 */
if (_check_domain_identifier(&lvd->domain_id, lvd_domain_id) < 0) {
udf_error("unknown Domain ID in Logical Volume Descriptor: %1.22s\n", lvd->domain_id.identifier);
return -1;
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment