Re: [PATCH] free pages in remove_arg_zero()

2007-02-21 Thread Andrew Morton
On Tue, 20 Feb 2007 14:29:04 +0100 Petr Tesak <[EMAIL PROTECTED]> wrote: > I've found a bug when executing scripts: You've found more than that. > When a script is loaded, load_script() replaces argv[0] with the > name of the interpreter and the filename passed to the exec syscall. >

Re: [PATCH] free pages in remove_arg_zero()

2007-02-21 Thread Andrew Morton
On Tue, 20 Feb 2007 14:29:04 +0100 Petr Tesak [EMAIL PROTECTED] wrote: I've found a bug when executing scripts: You've found more than that. When a script is loaded, load_script() replaces argv[0] with the name of the interpreter and the filename passed to the exec syscall. However,

[PATCH] free pages in remove_arg_zero()

2007-02-20 Thread Petr Tesařík
Hello, I've found a bug when executing scripts: When a script is loaded, load_script() replaces argv[0] with the name of the interpreter and the filename passed to the exec syscall. However, there is no guarantee that the length of the interpreter name plus the length of the filename is greater

[PATCH] free pages in remove_arg_zero()

2007-02-20 Thread Petr Tesařík
Hello, I've found a bug when executing scripts: When a script is loaded, load_script() replaces argv[0] with the name of the interpreter and the filename passed to the exec syscall. However, there is no guarantee that the length of the interpreter name plus the length of the filename is greater