diff options
| author | Fengwei Yin <fengwei.yin@intel.com> | 2014-02-27 01:17:09 +0800 |
|---|---|---|
| committer | Fengwei Yin <fengwei.yin@intel.com> | 2014-02-27 01:17:09 +0800 |
| commit | fff9d11be528ad8f581cc7223b879c55009d7396 (patch) | |
| tree | 9ca229a0254dcd2c76a3e4cb5721e410e5d3cb63 /base/errors_unix.cpp | |
| parent | ebb46d76e4bf4ee4f34b42709ea69cce07e3e322 (diff) | |
Fix undefined args access for x86_64.
From libc manual for vsnprintf:
The functions vprintf(), vfprintf(), vsprintf(), vsnprintf()
are equivalent to the functions printf(), fprintf(), sprintf(), snprintf(),
respectively, except that they are called with a va_list instead of a
variable number of arguments. These functions do not call the va_end macro.
Because they invoke the va_arg macro, the value of ap is undefined after the call.
We need to allocate/end new va_list for each vsnprintf.
Change-Id: I66ec058033be1cb918e7b2bc84ca546800da226b
Signed-off-by: Fengwei Yin <fengwei.yin@intel.com>
Diffstat (limited to 'base/errors_unix.cpp')
0 files changed, 0 insertions, 0 deletions
