|
Roman Rakus |
e73230 |
BASH PATCH REPORT
|
|
Roman Rakus |
e73230 |
=================
|
|
Roman Rakus |
e73230 |
|
|
Roman Rakus |
e73230 |
Bash-Release: 4.0
|
|
Roman Rakus |
e73230 |
Patch-ID: bash40-012
|
|
Roman Rakus |
e73230 |
|
|
Roman Rakus |
e73230 |
Bug-Reported-by: "Clark J. Wang" <dearvoid@gmail.com>
|
|
Roman Rakus |
e73230 |
Bug-Reference-ID: <a96f63770903132300v7816dfb7hb7f48d46048bf3cb@mail.gmail.com>
|
|
Roman Rakus |
e73230 |
Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2009-03/msg00129.html
|
|
Roman Rakus |
e73230 |
|
|
Roman Rakus |
e73230 |
Bug-Description:
|
|
Roman Rakus |
e73230 |
|
|
Roman Rakus |
e73230 |
A case statement using the ;& pattern terminator followed immediately by
|
|
Roman Rakus |
e73230 |
"esac" caused a core dump due to a null pointer dereference.
|
|
Roman Rakus |
e73230 |
|
|
Roman Rakus |
e73230 |
Patch:
|
|
Roman Rakus |
e73230 |
|
|
Roman Rakus |
e73230 |
*** ../bash-4.0-patched/execute_cmd.c 2009-02-13 16:41:41.000000000 -0500
|
|
Roman Rakus |
e73230 |
--- execute_cmd.c 2009-03-14 13:23:00.000000000 -0400
|
|
Roman Rakus |
e73230 |
***************
|
|
Roman Rakus |
e73230 |
*** 2931,2935 ****
|
|
Roman Rakus |
e73230 |
}
|
|
Roman Rakus |
e73230 |
while ((clauses->flags & CASEPAT_FALLTHROUGH) && (clauses = clauses->next));
|
|
Roman Rakus |
e73230 |
! if ((clauses->flags & CASEPAT_TESTNEXT) == 0)
|
|
Roman Rakus |
e73230 |
EXIT_CASE ();
|
|
Roman Rakus |
e73230 |
else
|
|
Roman Rakus |
e73230 |
--- 2931,2935 ----
|
|
Roman Rakus |
e73230 |
}
|
|
Roman Rakus |
e73230 |
while ((clauses->flags & CASEPAT_FALLTHROUGH) && (clauses = clauses->next));
|
|
Roman Rakus |
e73230 |
! if (clauses == 0 || (clauses->flags & CASEPAT_TESTNEXT) == 0)
|
|
Roman Rakus |
e73230 |
EXIT_CASE ();
|
|
Roman Rakus |
e73230 |
else
|
|
Roman Rakus |
e73230 |
*** ../bash-4.0/patchlevel.h 2009-01-04 14:32:40.000000000 -0500
|
|
Roman Rakus |
e73230 |
--- patchlevel.h 2009-02-22 16:11:31.000000000 -0500
|
|
Roman Rakus |
e73230 |
***************
|
|
Roman Rakus |
e73230 |
*** 26,30 ****
|
|
Roman Rakus |
e73230 |
looks for to find the patch level (for the sccs version string). */
|
|
Roman Rakus |
e73230 |
|
|
Roman Rakus |
e73230 |
! #define PATCHLEVEL 11
|
|
Roman Rakus |
e73230 |
|
|
Roman Rakus |
e73230 |
#endif /* _PATCHLEVEL_H_ */
|
|
Roman Rakus |
e73230 |
--- 26,30 ----
|
|
Roman Rakus |
e73230 |
looks for to find the patch level (for the sccs version string). */
|
|
Roman Rakus |
e73230 |
|
|
Roman Rakus |
e73230 |
! #define PATCHLEVEL 12
|
|
Roman Rakus |
e73230 |
|
|
Roman Rakus |
e73230 |
#endif /* _PATCHLEVEL_H_ */
|