You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by David Jones <os...@gmail.com> on 2007/11/08 15:05:14 UTC
PATCH: apr/dso/os390/dso.c abend due to incorrect storage allocation
on zos an apr_dso_load followed by an apr_dso_unload can cause an 0c4
due to only 8 bytes being alloc'd for the res_handle instead of the
necessary 24 bytes
Index: dso/os390/dso.c
===================================================================
--- dso/os390/dso.c (revision 579232)
+++ dso/os390/dso.c (working copy)
@@ -63,7 +63,7 @@
dllhandle *handle;
int rc;
- *res_handle = apr_pcalloc(ctx, sizeof(*res_handle));
+ *res_handle = apr_pcalloc(ctx, sizeof(**res_handle));
(*res_handle)->pool = ctx;
if ((handle = dllload(path)) != NULL) {
(*res_handle)->handle = handle;
Re: PATCH: apr/dso/os390/dso.c abend due to incorrect storage allocation
Posted by Jeff Trawick <tr...@gmail.com>.
On Nov 8, 2007 9:05 AM, David Jones <os...@gmail.com> wrote:
> on zos an apr_dso_load followed by an apr_dso_unload can cause an 0c4
> due to only 8 bytes being alloc'd for the res_handle instead of the
> necessary 24 bytes
committed to trunk, 1.2.x, and 0.9.x; thanks!