OSSP CVS Repository |
![]() |
|
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.
|
2012-Nov-03 02:12:26 by anonymous:
I should mention that the test runs and passes on Linux and and Solaris.
|
Type: code Version: 0.9.11 Status: new Created: 2012-Nov-03 02:06 Severity: 1 Last Change: 2012-Nov-03 02:12 Priority: 3 Subsystem: cfg Assigned To: rse Derived From: Creator: anonymous
- backtrace.txt 5390 bytes added by anonymous on 2012-Nov-03 01:07:52 UTC.
bt full of segfault.