bug in lua.c (Lua-5.0) while embedding the interpreter into bash-2.05
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: bug in lua.c (Lua-5.0) while embedding the interpreter into bash-2.05
- From: "Weiguang Shi" <wgshizz@...>
- Date: Thu, 8 Mar 2007 23:00:23 -0800
Line 310
for (i = 1; argv[i] != NULL; i++) {
assumes that an out-of-range i would mean argv[i]==NULL
which was not true in my case. And line 311 would try to access
it
if (argv[i][0] != '-') break; /* not an option? */
which caused a seg fault.
Wei