diff options
author | Andre Heinecke <[email protected]> | 2019-07-16 09:39:29 +0000 |
---|---|---|
committer | Andre Heinecke <[email protected]> | 2019-07-16 09:39:29 +0000 |
commit | 6f4a886b30caaac3a30fcf30a7525d656d7e25ce (patch) | |
tree | e573871f0bed2e3e07f8819dfa412cf2bd536c29 /lang/cpp/src/context_qt.cpp | |
parent | python: doc: Remove generated files, put rules in Makefile. (diff) | |
download | gpgme-6f4a886b30caaac3a30fcf30a7525d656d7e25ce.tar.gz gpgme-6f4a886b30caaac3a30fcf30a7525d656d7e25ce.zip |
core: Fix arg counting in enginge-gpg
* src/engine-gpg.c (build_argv): Properly check for all
arguments and allocate memory for them.
--
This fixes a potential buffer overflow which could be created
by using unusual and partially contradictory options.
Like offline and auto-key-locate together while
using ignore-mdc-error.
As the list of arguments should not be user controlled the
impact of this is very low.
To ensure that this does not happen in the future an
assert is also added with this patch.
Diffstat (limited to 'lang/cpp/src/context_qt.cpp')
0 files changed, 0 insertions, 0 deletions