Re: [sheepdog] [PATCH] dog: let "dog vdi cache" subcommands parse arguments in a correct manner

2013-12-19 Thread Liu Yuan
On Fri, Dec 20, 2013 at 01:09:02PM +0900, Hitoshi Mitake wrote: > At Fri, 20 Dec 2013 11:47:07 +0800, > Liu Yuan wrote: > > > > On Fri, Dec 20, 2013 at 10:56:34AM +0900, Hitoshi Mitake wrote: > > > Current subcommands of "dog vdi cache" can cause segmentation faults > > > because they don't check

Re: [sheepdog] [PATCH] dog: let "dog vdi cache" subcommands parse arguments in a correct manner

2013-12-19 Thread Hitoshi Mitake
At Fri, 20 Dec 2013 11:47:07 +0800, Liu Yuan wrote: > > On Fri, Dec 20, 2013 at 10:56:34AM +0900, Hitoshi Mitake wrote: > > Current subcommands of "dog vdi cache" can cause segmentation faults > > because they don't check an index of argv. > > > > I tried every subcommand for 'vdi cache' and don

Re: [sheepdog] [PATCH] dog: let "dog vdi cache" subcommands parse arguments in a correct manner

2013-12-19 Thread Liu Yuan
On Fri, Dec 20, 2013 at 10:56:34AM +0900, Hitoshi Mitake wrote: > Current subcommands of "dog vdi cache" can cause segmentation faults > because they don't check an index of argv. > I tried every subcommand for 'vdi cache' and don't get the segfault, which exactly commond cause the segfalt? Than

[sheepdog] [PATCH] dog: let "dog vdi cache" subcommands parse arguments in a correct manner

2013-12-19 Thread Hitoshi Mitake
Current subcommands of "dog vdi cache" can cause segmentation faults because they don't check an index of argv. Signed-off-by: Hitoshi Mitake --- dog/vdi.c | 22 +++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/dog/vdi.c b/dog/vdi.c index c716589..b6c955c 1