Author: richter
Date: Tue Mar 21 21:02:29 2006
New Revision: 387723
URL: http://svn.apache.org/viewcvs?rev=387723&view=rev
Log:
- Fixed segfault that could occur because a non
string value is passed as string index, which
crashed if such a string index doesn't exists.
Spotted by Carl Eklof.
Modified:
perl/embperl/trunk/Changes.pod
perl/embperl/trunk/TODO
perl/embperl/trunk/epparse.c
Modified: perl/embperl/trunk/Changes.pod
URL:
http://svn.apache.org/viewcvs/perl/embperl/trunk/Changes.pod?rev=387723&r1=387722&r2=387723&view=diff
==============================================================================
--- perl/embperl/trunk/Changes.pod (original)
+++ perl/embperl/trunk/Changes.pod Tue Mar 21 21:02:29 2006
@@ -18,6 +18,10 @@
- Added better handling of Out Of Memory condition,
i.e. log error end try to clean up instead of
segfault.
+ - Fixed segfault that could occur because a non
+ string value is passed as string index, which
+ crashed if such a string index doesn't exists.
+ Spotted by Carl Eklof.
=head1 2.1.0 15. Nov 2005
Modified: perl/embperl/trunk/TODO
URL:
http://svn.apache.org/viewcvs/perl/embperl/trunk/TODO?rev=387723&r1=387722&r2=387723&view=diff
==============================================================================
--- perl/embperl/trunk/TODO (original)
+++ perl/embperl/trunk/TODO Tue Mar 21 21:02:29 2006
@@ -19,6 +19,8 @@
- curr_esc_mode in map [Robert 24.1.06]
+- Apache2:compat fuer session setup [Aare Vesi 1.2.06]
+
TODO for Embperl 2.1 and later
- make Embperl run with threads and threaded Apache 2
Modified: perl/embperl/trunk/epparse.c
URL:
http://svn.apache.org/viewcvs/perl/embperl/trunk/epparse.c?rev=387723&r1=387722&r2=387723&view=diff
==============================================================================
--- perl/embperl/trunk/epparse.c (original)
+++ perl/embperl/trunk/epparse.c Tue Mar 21 21:02:29 2006
@@ -1147,7 +1147,7 @@
if (!(xNode = Node_appendChild (r -> pApp, pDomTree, xDocNode, 0,
ntypAttr, 0, NULL, xDomTreeAttr, 0, 0, NULL)))
return rcOutOfMemory ;
- if (!(xNode = Node_appendChild (r -> pApp, pDomTree, xNode, 0,
ntypAttrValue, 0, NULL, r -> Component.xCurrDomTree, 0, 0, NULL)))
+ if (!(xNode = Node_appendChild (r -> pApp, pDomTree, xNode, 0,
ntypAttrValue, 0, (char *)&(r -> Component.xCurrDomTree), sizeof (r ->
Component.xCurrDomTree), 0, 0, NULL)))
return rcOutOfMemory ;
/* Add at least one child node to document to make insertafter at the
beginning of the document work */
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]