mirror of
https://github.com/pbatard/rufus.git
synced 2025-06-06 01:21:24 -04:00
[iso] fix possible crash when accessing root UDF files
* See http://lists.gnu.org/archive/html/libcdio-devel/2012-11/msg00013.html and http://cgit.freedesktop.org/~teuf/cdio/commit/?id=6c0251d145e44b7cdfeb9767c615646fb8f51320
This commit is contained in:
parent
c8276a5fe8
commit
249d3e16fb
2 changed files with 8 additions and 7 deletions
|
@ -257,7 +257,8 @@ udf_fopen(udf_dirent_t *p_udf_root, const char *psz_name)
|
|||
p_udf_root->psz_name, p_udf_root->b_dir,
|
||||
p_udf_root->b_parent);
|
||||
p_udf_file = udf_ff_traverse(p_udf_dirent, psz_token);
|
||||
udf_dirent_free(p_udf_dirent);
|
||||
if (p_udf_file != p_udf_dirent)
|
||||
udf_dirent_free(p_udf_dirent);
|
||||
}
|
||||
else if ( 0 == strncmp("/", psz_name, sizeof("/")) ) {
|
||||
return udf_new_dirent(&p_udf_root->fe, p_udf_root->p_udf,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue