diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2018-10-19 07:51:26 +0200 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2018-12-02 21:59:37 +0100 |
commit | 4c174394caa814a185121e7b06a41dc4be5c774a (patch) | |
tree | 462434baa564d79739f93451ec7afe017ab280a0 /lib/qsort.c | |
parent | 81ea00838c682da06637bcf208549095181df337 (diff) |
efi_selftest: do not write to linker generated array
Linker generated arrays may be stored in code sections of memory that are
not writable. So let's allocate setup_ok as an array at runtime.
This avoids an illegal memory access observed in the sandbox.
Reported-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'lib/qsort.c')
0 files changed, 0 insertions, 0 deletions