audk/BaseTools/Source/C
Michael Kubacki 179efe5d69 BaseTools: Fix wrong type of arguments to formatting functions
Fixes issues found with the cpp/wrong-type-format-argument CodeQL
rule in BaseTools.

Reference:
https://cwe.mitre.org/data/definitions/686.html

The following CodeQL errors are resolved:

1. Check failure on line 1115 in
   BaseTools/Source/C/EfiRom/EfiRom.c

   - This argument should be of type 'int' but is of type 'char *'.
   - This argument should be of type 'int' but is of type 'signed
     char *'.

2. Check failure on line 359 in
   BaseTools/Source/C/GenFw/Elf32Convert.c

   - This argument should be of type 'CHAR8 *' but is of type
     'unsigned int'.

3. Check failure on line 1841 in
   BaseTools/Source/C/GenFw/Elf64Convert.c

   - This argument should be of type 'unsigned int' but is of type
     'unsigned long long'.

4. Check failure on line 1871 in
   BaseTools/Source/C/GenFw/Elf64Convert.c

   - This argument should be of type 'unsigned int' but is of type
     'unsigned long long'.

5. Check failure on line 2400 in
   BaseTools/Source/C/GenFv/GenFvInternalLib.c

   - This argument should be of type 'unsigned long long' but is of
     type 'unsigned int'.

6. Check failure on line 1099 in
   BaseTools/Source/C/GenFw/Elf64Convert.c

   - This argument should be of type 'CHAR8 *' but is of type
     'unsigned int'.

7. Check failure on line 1098 in
   BaseTools/Source/C/GenSec/GenSec.c

   - This argument should be of type 'CHAR8 *' but is of type
     'char **'.

8. Check failure on line 911 in
   BaseTools/Source/C/GenSec/GenSec.c

  - This argument should be of type 'CHAR8 *' but is of type
    'char **'.

Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Yuwei Chen <yuwei.chen@intel.com>
Cc: Sean Brogan <sean.brogan@microsoft.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
Reviewed-by: Sean Brogan <sean.brogan@microsoft.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
2022-11-09 14:53:10 +00:00
..
BrotliCompress BaseTools: Update brotli submodule 2022-02-15 02:13:32 +00:00
Common BaseTools: Remove duplicated words in C tools 2022-10-16 04:21:29 +00:00
DevicePath BaseTools: Remove duplicated words in C tools 2022-10-16 04:21:29 +00:00
EfiRom BaseTools: Fix wrong type of arguments to formatting functions 2022-11-09 14:53:10 +00:00
GenCrc32 BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
GenFfs BaseTools: fix gcc12 warning 2022-03-28 00:51:30 +00:00
GenFv BaseTools: Fix wrong type of arguments to formatting functions 2022-11-09 14:53:10 +00:00
GenFw BaseTools: Fix wrong type of arguments to formatting functions 2022-11-09 14:53:10 +00:00
GenSec BaseTools: Fix wrong type of arguments to formatting functions 2022-11-09 14:53:10 +00:00
Include BaseTools: Add LoongArch64 binding. 2022-10-14 02:16:33 +00:00
LzmaCompress BaseTools: fix gcc12 warning 2022-03-28 00:51:30 +00:00
Makefiles BaseTools/Source/C: Use /Z7 instead of /Zi for host tools 2022-11-08 18:29:51 +00:00
PyEfiCompressor BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
TianoCompress BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
VfrCompile BaseTools/Source/C: Use /Z7 instead of /Zi for host tools 2022-11-08 18:29:51 +00:00
VolInfo BaseTools/VolInfo: Update file and section type strings 2022-10-02 05:34:38 +00:00
GNUmakefile BaseTools: Add LoongArch64 binding. 2022-10-14 02:16:33 +00:00
Makefile BaseTools: Convert Split tool to python 2021-01-21 10:19:09 +00:00