apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Jones" <oscare...@gmail.com>
Subject PATCH: apr/dso/os390/dso.c abend due to incorrect storage allocation
Date Thu, 08 Nov 2007 14:05:14 GMT
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;

Mime
View raw message