diff options
author | Martin Willers <M.Willers@gmx.net> | 2014-05-08 12:32:56 +0200 |
---|---|---|
committer | Benjamin Dobell <benjamin.dobell+git@glassechidna.com.au> | 2014-05-10 01:22:22 +1000 |
commit | d5cd49b73c3dfaf5b1188030a6bc9fc597edae8a (patch) | |
tree | d7ac13957f87aabbc6e5702de34fffa6d4ffcc25 /libpit/m4 | |
parent | 9f957a193701788cac66292daea2c89ed94a033f (diff) | |
download | external_heimdall-d5cd49b73c3dfaf5b1188030a6bc9fc597edae8a.zip external_heimdall-d5cd49b73c3dfaf5b1188030a6bc9fc597edae8a.tar.gz external_heimdall-d5cd49b73c3dfaf5b1188030a6bc9fc597edae8a.tar.bz2 |
fix --stdout-errors handling
When using --stdout-errors, the messages written to stdout contained garbage.
Inside vfprintf(), each va_arg() consumes one entry from the va_args.
Trying to use the same va_args variable again results in undefined behavior
as subsequent va_arg() invocations continue to read from memory past the
actual variable space.
Instead, a copy has to be made with va_copy() and this be used for
outputting to stdout.
Diffstat (limited to 'libpit/m4')
0 files changed, 0 insertions, 0 deletions