Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

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

[UDUNITS #FKF-573742]: udunits2 - issues from valgrind



Mike,

> While debugging an app with valgrind, I noticed some possible errors
> related to the udunits2 package. Please see attached .txt file.
> 
> (a) Source and destination overlap in strncpy
> 
> This seems pretty minor - as a test I added a temporary string (base1)
> and valgrind was happy. See code in text file.

Thanks.  I already knew about this and fixed it.  I haven't released it
yet, though.

> (b) Memory leak.
> 
> I inspected the code, and I cannot see the problem. 'prev' seems to be
> freed OK. So perhaps it is not a real problem, but I thought I'd pass it
> on in case you can find an error.

Can't say that I can see anything wrong.  The referenced code is generated
by the flex(1) utility, so I'd rather not mess with it unless it becomes
necessary.

> Thanks
> 
> Mike Dixon

Thank you!

Regards,
Steve Emmerson

Ticket Details
===================
Ticket ID: FKF-573742
Department: Support UDUNITS
Priority: Normal
Status: Closed


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Office of Programs University Corporation for Atmospheric Research (UCAR)   Unidata is a member of the UCAR Office of Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690