author | R. Bernstein <rocky@gnu.org> | 2017年12月29日 20:59:45 -0500 |
---|---|---|
committer | R. Bernstein <rocky@gnu.org> | 2017年12月29日 20:59:45 -0500 |
commit | 8980bdebcb68916d2b2aea91b9d76e83a1a3c574 (patch) | |
tree | 0170babc6260151ffd81b6855dc39532ec38552b /lib/iso9660/rock.c | |
parent | b2a881e9ea77dbf9ee77a6d642fc56d75b3179cc (diff) | |
download | libcdio-8980bdebcb68916d2b2aea91b9d76e83a1a3c574.tar.gz |
-rw-r--r-- | lib/iso9660/rock.c | 5 |
diff --git a/lib/iso9660/rock.c b/lib/iso9660/rock.c index ab7be8b3..db15a2e0 100644 --- a/lib/iso9660/rock.c +++ b/lib/iso9660/rock.c @@ -422,8 +422,9 @@ parse_rock_ridge_stat_internal(iso9660_dir_t *p_iso9660_dir, switch(p_sl->flags &~1){ case 0: realloc_symlink(p_stat, p_sl->len); - memcpy(&(p_stat->rr.psz_symlink[p_stat->rr.i_symlink]), - p_sl->text, p_sl->len); + if (p_sl->text && p_sl->len) + memcpy(&(p_stat->rr.psz_symlink[p_stat->rr.i_symlink]), + p_sl->text, p_sl->len); p_stat->rr.i_symlink += p_sl->len; break; case 4: |