diff options
author | zbb <zbb@FreeBSD.org> | 2016-01-25 14:42:44 +0000 |
---|---|---|
committer | zbb <zbb@FreeBSD.org> | 2016-01-25 14:42:44 +0000 |
commit | dfc2b357e6d47744e13bc1235a314bedde6d9115 (patch) | |
tree | a094de659142c54848db20505e232aeb0fa396dc /contrib/llvm/lib/Support/DataStream.cpp | |
parent | bb813c111648969a970dd349e2a0dcbc16f8d042 (diff) | |
download | FreeBSD-src-dfc2b357e6d47744e13bc1235a314bedde6d9115.zip FreeBSD-src-dfc2b357e6d47744e13bc1235a314bedde6d9115.tar.gz |
Do not destroy input buffer of the OF_getencprop() function on error
Currently when the OF_getprop() function returns with error,
the caller (OF_getencprop()) still changes the buffer endiannes.
This may destroy the default value passed in the input buffer if
used on a Little Endian platform.
Reviewed by: mmel
Submitted by: Zbigniew Bodek <zbb@semihalf.com>
Obtained from: Semihalf
Sponsored by: Cavium
Diffstat (limited to 'contrib/llvm/lib/Support/DataStream.cpp')
0 files changed, 0 insertions, 0 deletions