diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2020-10-04 23:35:55 +0300 |
---|---|---|
committer | Cyrill Gorcunov <gorcunov@gmail.com> | 2020-10-04 23:35:55 +0300 |
commit | 858bc9d6b9d8d77961a375e792e69666d613383f (patch) | |
tree | 3a6b52020aee49c872b85653e9bd9a4a3b28286d | |
parent | 6f01aca07cf35a9e43f94991e4abaabb8511eba6 (diff) | |
download | nasm-858bc9d6b9d8d77961a375e792e69666d613383f.tar.gz nasm-858bc9d6b9d8d77961a375e792e69666d613383f.tar.xz nasm-858bc9d6b9d8d77961a375e792e69666d613383f.zip |
rdoff: search_libraries - zeroify stack allocated structure
Coverity scan tool complains on rdffile::rdoff_ver member
being called with memcpy uninitialized. Lets zap this
structure explicitly once we've it allocated.
CID 1432931
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
-rw-r--r-- | rdoff/ldrdf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rdoff/ldrdf.c b/rdoff/ldrdf.c index a78c4504..a3b0dac0 100644 --- a/rdoff/ldrdf.c +++ b/rdoff/ldrdf.c @@ -606,6 +606,7 @@ static int search_libraries(void) cur = libraries; + memset(&f, 0, sizeof(f)); while (cur) { if (options.verbose > 2) printf("scanning library `%s', pass %d...\n", cur->name, pass); |