You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by jw...@apache.org on 2003/01/29 19:16:23 UTC

cvs commit: apr-util/buckets apr_buckets_mmap.c

jwoolley    2003/01/29 10:16:23

  Modified:    buckets  apr_buckets_mmap.c
  Log:
  Fix a nasty segfault in mmap_bucket_setaside() caused by passing
  an incompatible pointer type to mmap_bucket_destroy(void*).
  
  PR:            16533
  Submitted by:  Gerard Eviston <ge...@bigpond.net.au>
  Reviewed by:   Cliff Woolley
  
  Revision  Changes    Path
  1.55      +1 -1      apr-util/buckets/apr_buckets_mmap.c
  
  Index: apr_buckets_mmap.c
  ===================================================================
  RCS file: /home/cvs/apr-util/buckets/apr_buckets_mmap.c,v
  retrieving revision 1.54
  retrieving revision 1.55
  diff -u -d -u -r1.54 -r1.55
  --- apr_buckets_mmap.c	1 Jan 2003 00:02:17 -0000	1.54
  +++ apr_buckets_mmap.c	29 Jan 2003 18:16:23 -0000	1.55
  @@ -164,7 +164,7 @@
       }
   
       /* decrement refcount on old apr_bucket_mmap */
  -    mmap_bucket_destroy(mm);
  +    mmap_bucket_destroy(m);
   
       /* create new apr_bucket_mmap pointing to new apr_mmap_t */
       apr_bucket_mmap_make(b, new_mm, b->start, b->length);