Commit: 9f4b2d0287ef1d4a70648250aeff0d8aa4f61ccc
Parent: c63b7b0d732ef73c7a9d3cdcbbd20fe4ccdd6a87
Author: Bastien Nocera <hadess@hadess.net>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2024-05-16 23:36:54
Tree: cca0acddaea6b216df268a44c638c9596a67771a

test-runner: Remove unused envp Error: UNINIT (CWE-457): [#def70] [important] tools/test-runner.c:644:2: var_decl: Declaring variable "envp" without initializer. tools/test-runner.c:682:3: uninit_use_in_call: Using uninitialized value "*envp" when calling "execve". 680| 681| if (pid == 0) { 682|-> execve(argv[0], argv, envp); 683| exit(EXIT_SUCCESS); 684| } Error: UNINIT (CWE-457): [#def71] [important] tools/test-runner.c:701:2: var_decl: Declaring variable "envp" without initializer. tools/test-runner.c:739:3: uninit_use_in_call: Using uninitialized value "*envp" when calling "execve". 737| 738| if (pid == 0) { 739|-> execve(argv[0], argv, envp); 740| exit(EXIT_SUCCESS); 741| }

Diffstat

M tools/test-runner.c | 4 ++- -

1 files changed, 2 insertions(+), 2 deletions(-)

View Full Diff | Patch