diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-09 11:07:18 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-09 11:07:18 +0200 |
commit | 526fd8b4969b2efe62e0fbc339a7b7dafefb7729 (patch) | |
tree | 8b5dd9ff968b8c045e555685ca954f5894e25a1c /lib/sqfs | |
parent | 3a851dfe87c88ac1d4dddc2a26cc48b037f852f9 (diff) |
Move file name sanity check to deserialize_fstree
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs')
-rw-r--r-- | lib/sqfs/readdir.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/sqfs/readdir.c b/lib/sqfs/readdir.c index 1323c36..25d0438 100644 --- a/lib/sqfs/readdir.c +++ b/lib/sqfs/readdir.c @@ -60,18 +60,6 @@ int sqfs_meta_reader_read_dir_ent(sqfs_meta_reader_t *m, return err; } - if (strchr((char *)out->name, '/') != NULL || - strchr((char *)out->name, '\\') != NULL) { - free(out); - return SQFS_ERROR_CORRUPTED; - } - - if (strcmp((char *)out->name, "..") == 0 || - strcmp((char *)out->name, ".") == 0) { - free(out); - return SQFS_ERROR_CORRUPTED; - } - *result = out; return 0; } |