Enlarged string size limit of Text_shellsafe()
This commit is contained in:
@ -482,7 +482,7 @@ int Xorriso_normalize_img_path(struct XorrisO *xorriso, char *img_path,
|
||||
struct iso_volume *volume;
|
||||
struct iso_tree_node_dir *dir= NULL;
|
||||
struct iso_tree_node *node= NULL;
|
||||
char path[SfileadrL], *apt, *npt, sfe[4*SfileadrL], *cpt;
|
||||
char path[SfileadrL], *apt, *npt, sfe[5*SfileadrL], *cpt;
|
||||
|
||||
eff_path[0]= 0;
|
||||
if(img_path[0]==0)
|
||||
@ -585,7 +585,7 @@ int Xorriso_get_node_by_path(struct XorrisO *xorriso,
|
||||
struct iso_tree_node **node, int flag)
|
||||
{
|
||||
int ret;
|
||||
char sfe[4*SfileadrL], path[SfileadrL];
|
||||
char sfe[5*SfileadrL], path[SfileadrL];
|
||||
struct iso_volume *volume;
|
||||
|
||||
ret= Xorriso_normalize_img_path(xorriso, in_path, path, 0);
|
||||
@ -615,7 +615,7 @@ int Xorriso_add_tree(struct XorrisO *xorriso, struct iso_tree_node_dir *dir,
|
||||
struct iso_tree_node *node;
|
||||
int ret, target_is_dir, source_is_dir;
|
||||
struct DirseQ *dirseq= NULL;
|
||||
char sfe[4*SfileadrL], sfe2[4*SfileadrL];
|
||||
char sfe[5*SfileadrL], sfe2[5*SfileadrL];
|
||||
char disk_path[2*SfileadrL], img_path[2*SfileadrL];
|
||||
char *name, *img_name;
|
||||
struct stat stbuf;
|
||||
@ -752,7 +752,7 @@ int Xorriso_graft_in(struct XorrisO *xorriso, char *disk_path, char *img_path,
|
||||
int flag)
|
||||
{
|
||||
struct iso_volume *volume;
|
||||
char path[SfileadrL], *apt, *npt, *cpt, sfe[4*SfileadrL];
|
||||
char path[SfileadrL], *apt, *npt, *cpt, sfe[5*SfileadrL];
|
||||
struct iso_tree_node_dir *dir;
|
||||
struct iso_tree_node *node;
|
||||
int done= 0, is_dir= 0, l, ret, target_is_dir, source_is_dir;
|
||||
@ -1396,7 +1396,7 @@ int Xorriso_format_media(struct XorrisO *xorriso, int flag)
|
||||
int Xorriso_node_from_path(struct XorrisO *xorriso, struct iso_volume *volume,
|
||||
char *path, struct iso_tree_node **node, int flag)
|
||||
{
|
||||
char sfe[4*SfileadrL];
|
||||
char sfe[5*SfileadrL];
|
||||
|
||||
*node= iso_tree_volume_path_to_node(volume, path);
|
||||
Xorriso_process_msg_queues(xorriso,0);
|
||||
@ -1430,7 +1430,7 @@ int Xorriso_rmi(struct XorrisO *xorriso, void *boss_iter,
|
||||
struct iso_tree_node_dir *boss_node, *root_dir;
|
||||
struct iso_tree_iter *iter= NULL;
|
||||
struct iso_volume *volume;
|
||||
char sfe[4*SfileadrL], sub_path[2*SfileadrL], *sub_name, *name;
|
||||
char sfe[5*SfileadrL], sub_path[2*SfileadrL], *sub_name, *name;
|
||||
|
||||
ret= Xorriso_get_volume(xorriso, &volume, 0);
|
||||
if(ret<=0)
|
||||
@ -1669,7 +1669,7 @@ int Xorriso_show_du_subs(struct XorrisO *xorriso,
|
||||
int i, ret, no_sort= 0, filec= 0, l;
|
||||
struct iso_tree_iter *iter= NULL;
|
||||
struct iso_tree_node *node, **node_array= NULL;
|
||||
char path[SfileadrL], show_path[SfileadrL], *name, sfe[4*SfileadrL];
|
||||
char path[SfileadrL], show_path[SfileadrL], *name, sfe[5*SfileadrL];
|
||||
off_t sub_size, report_size, mem= 0;
|
||||
|
||||
*size= 0;
|
||||
@ -1812,7 +1812,7 @@ int Xorriso_ls_filev(struct XorrisO *xorriso, int filec, char **filev,
|
||||
int i, ret, was_error= 0;
|
||||
struct iso_tree_node *node;
|
||||
struct iso_volume *volume;
|
||||
char sfe[4*SfileadrL], path[SfileadrL], *rpt, perms[10];
|
||||
char sfe[5*SfileadrL], path[SfileadrL], *rpt, perms[10];
|
||||
mode_t st_mode;
|
||||
off_t size;
|
||||
time_t mtime;
|
||||
@ -1942,7 +1942,7 @@ int Xorriso_ls(struct XorrisO *xorriso, int flag)
|
||||
struct iso_tree_node_dir *dir_node;
|
||||
struct iso_volume *volume;
|
||||
struct iso_tree_iter *iter= NULL;
|
||||
char sfe[4*SfileadrL], *npt, *rpt, perms[10];
|
||||
char sfe[5*SfileadrL], *npt, *rpt, perms[10];
|
||||
mode_t st_mode;
|
||||
off_t size;
|
||||
time_t mtime;
|
||||
@ -2073,8 +2073,8 @@ ex:;
|
||||
int Xorriso_rename(struct XorrisO *xorriso, char *origin, char *dest, int flag)
|
||||
{
|
||||
int ret, ol, dest_ret;
|
||||
char sfe[4*SfileadrL], eff_dest[SfileadrL], dir_adr[SfileadrL], *cpt;
|
||||
char *leafname, eff_origin[SfileadrL], sfe2[4*SfileadrL];
|
||||
char sfe[5*SfileadrL], eff_dest[SfileadrL], dir_adr[SfileadrL], *cpt;
|
||||
char *leafname, eff_origin[SfileadrL], sfe2[5*SfileadrL];
|
||||
struct iso_volume *volume;
|
||||
struct iso_tree_node_dir *origin_dir, *dest_dir;
|
||||
struct iso_tree_node *node;
|
||||
@ -2196,7 +2196,7 @@ int Xorriso_rename(struct XorrisO *xorriso, char *origin, char *dest, int flag)
|
||||
int Xorriso_mkdir(struct XorrisO *xorriso, char *path, int flag)
|
||||
{
|
||||
int ret;
|
||||
char eff_path[SfileadrL], sfe[4*SfileadrL];
|
||||
char eff_path[SfileadrL], sfe[5*SfileadrL];
|
||||
|
||||
ret= Xorriso_normalize_img_path(xorriso, path, eff_path, 1);
|
||||
if(ret<0)
|
||||
@ -2326,7 +2326,7 @@ int Xorriso_expand_pattern(struct XorrisO *xorriso,
|
||||
int *filec, char ***filev, off_t *mem, int flag)
|
||||
{
|
||||
int ret, count= 0, abs_adr= 0, i, l, was_count, was_filec;
|
||||
char mem_text[80], limit_text[80], sfe[4*SfileadrL];
|
||||
char mem_text[80], limit_text[80], sfe[5*SfileadrL];
|
||||
struct iso_volume *volume;
|
||||
struct iso_tree_node_dir *dir, *root_dir;
|
||||
|
||||
@ -2472,7 +2472,7 @@ int Xorriso_set_st_mode(struct XorrisO *xorriso, char *in_path,
|
||||
mode_t mode= 0;
|
||||
int ret;
|
||||
struct iso_tree_node *node;
|
||||
char sfe[4*SfileadrL], path[SfileadrL];
|
||||
char sfe[5*SfileadrL], path[SfileadrL];
|
||||
|
||||
ret= Xorriso_get_node_by_path(xorriso, in_path, path, &node, 0);
|
||||
if(ret<=0)
|
||||
|
Reference in New Issue
Block a user