summaryrefslogtreecommitdiff
path: root/Cryptlib/OpenSSL/crypto/pqueue/pqueue.h
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2019-02-12 18:04:49 -0500
committerPeter Jones <pjones@redhat.com>2020-08-04 15:37:12 -0400
commited201f297ba8811ca4e8416e5b90a9d6ce45d986 (patch)
tree26371f8da9e0c0bfdc64f765f91fc26d1620c578 /Cryptlib/OpenSSL/crypto/pqueue/pqueue.h
parent3655ab82aa1fd50168687196e1f63521038a8a7a (diff)
downloadefi-boot-shim-ed201f297ba8811ca4e8416e5b90a9d6ce45d986.tar.gz
efi-boot-shim-ed201f297ba8811ca4e8416e5b90a9d6ce45d986.zip
VLogError(): Avoid NULL pointer dereferences in (V)Sprint calls
VLogError() calculates the size of format strings by using calls to SPrint and VSPrint with a StrSize of 0 and NULL for an output buffer. Unfortunately, this is an incorrect usage of (V)Sprint. A StrSize of "0" is special-cased to mean "there is no limit". So, we end up writing our string to address 0x0. This was discovered because it causes a crash on ARM where, unlike x86, it does not necessarily have memory mapped at 0x0. Avoid the (V)Sprint calls altogether by using (V)PoolPrint, which handles the size calculation and allocation for us. Signed-off-by: Peter Jones <pjones@redhat.com> Fixes: 25f6fd08cd26 ("try to show errors more usefully.") [dannf: commit message ] Signed-off-by: dann frazier <dann.frazier@canonical.com>
Diffstat (limited to 'Cryptlib/OpenSSL/crypto/pqueue/pqueue.h')
0 files changed, 0 insertions, 0 deletions