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;

Attachment: dso.patch
Description: Binary data

Reply via email to