OSSP CVS Repository

ossp - Ticket #192
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Attach]  [Edit]  [History

Ticket 192: cfg_export dumps core on FreeBSD, Darwin

When attempting to evaluate libcfg for a project I'm starting, I ran the test on my FreeBSD 9 and OS X which dumped core. It looks like there's some incorrect usage of va_list variables given that the va_arg() call that initializes s on line 908 of cfg_fmt.c returns invalid memory. I put a va_copy() at the top of cfg_fmt_format(), making a copy of ap, and changed cfg_fmt_format() to operate on that copy. The test then passes. I'm not sure if this is the right solution, but at least the code runs and passes its test.
[Append remarks]

Remarks:

2012-Nov-03 02:12:26 by anonymous:
I should mention that the test runs and passes on Linux and and Solaris.
[Append remarks]

Properties:

Type: code           Version: 0.9.11 
Status: new          Created: 2012-Nov-03 02:06
Severity:          Last Change: 2012-Nov-03 02:12
Priority:          Subsystem: cfg 
Assigned To: rse           Derived From:  
Creator: anonymous 

Attachments:

CVSTrac 2.0.1