From 9514ce4da77f1a233560fc67bedbcba4269b8b9b Mon Sep 17 00:00:00 2001 From: Timo Sairiala Date: Tue, 23 Apr 2024 09:21:04 +0300 Subject: [PATCH] DO NOT MERGE: introduce codeQL issue --- libs/libc/stdio/lib_libvsprintf.c | 9 +++++++++ tools/mkdeps.c | 2 ++ 2 files changed, 11 insertions(+) diff --git a/libs/libc/stdio/lib_libvsprintf.c b/libs/libc/stdio/lib_libvsprintf.c index de285527d5342..f34404366a09d 100644 --- a/libs/libc/stdio/lib_libvsprintf.c +++ b/libs/libc/stdio/lib_libvsprintf.c @@ -159,6 +159,15 @@ static int vsprintf_internal(FAR struct lib_outstream_s *stream, FAR struct arg_s *arglist, int numargs, FAR const IPTR char *fmt, va_list ap) { + // DO NOT MERGE: + int test_int = 0; + uint8_t test_uint8_t = 0; + + if ( test_int < test_uint8_t ) { + test_uint8_t = test_int; + } + + unsigned char c; /* Holds a char from the format string */ uint16_t flags; int width; diff --git a/tools/mkdeps.c b/tools/mkdeps.c index da9a3f5b8874a..fad451de18224 100644 --- a/tools/mkdeps.c +++ b/tools/mkdeps.c @@ -794,6 +794,8 @@ static void do_dependency(const char *file) cmdlen++; g_command[cmdlen] = '\0'; + ret = system(g_command); + /* Make a copy of g_altpath. We need to do this because at least the * version of strtok_r above does modify it. */