[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gsl] [bug #27236] invalid frees in bspline.c

From: Brian Gough
Subject: [Bug-gsl] [bug #27236] invalid frees in bspline.c
Date: Wed, 12 Aug 2009 18:31:40 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv: Gecko/2009020410 Fedora/3.0.6-1.fc9 Firefox/3.0.6


                 Summary: invalid frees in bspline.c
                 Project: GNU Scientific Library
            Submitted by: bjg
            Submitted on: Wed 12 Aug 2009 07:31:39 PM BST
                Category: Runtime error
                Severity: 3 - Normal
        Operating System: 
                  Status: Confirmed
             Assigned to: bjg
             Open/Closed: Open
                 Release: 1.12
         Discussion Lock: Any



Looks like I found an bugs in bspline.c., GSL 1.12. At least in
*gsl_bspline_alloc*  and *gsl_bspline_deriv_alloc*  there are a lot of 
code like:
 w->deltar = gsl_vector_alloc (k);
      if (w->deltar == 0)
      free (w->deltal);
      free (w->knots);
      free (w);
It means that w->deltal was allocated as *gsl_vector*, but deallocated 
as *void** with memory leaks.

*Have a nice day, *
*Dr. Yevgeniy Naumovich


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]