Task #91515 - fixed.err

back to task #91515
download
Error: COMPILER_WARNING (CWE-704):
libxcrypt-4.4.38/lib/crypt-gost-yescrypt.c: scope_hint: In function '_crypt_crypt_gost_yescrypt_rn'
libxcrypt-4.4.38/lib/crypt-gost-yescrypt.c:134:16: warning[-Wdiscarded-qualifiers]: initialization discards 'const' qualifier from pointer target type
#  134 |   char *hptr = strchr ((const char *) intbuf->retval + 3, '$');
#      |                ^~~~~~
#  132|   
#  133|     /* extract yescrypt output from "$y$param$salt$output" */
#  134|->   char *hptr = strchr ((const char *) intbuf->retval + 3, '$');
#  135|     if (!hptr)
#  136|       {

Error: COMPILER_WARNING (CWE-704):
libxcrypt-4.4.38/lib/crypt-gost-yescrypt.c:134:16: warning[-Wdiscarded-qualifiers]: initialization discards 'const' qualifier from pointer target type
#  132|   
#  133|     /* extract yescrypt output from "$y$param$salt$output" */
#  134|->   char *hptr = strchr ((const char *) intbuf->retval + 3, '$');
#  135|     if (!hptr)
#  136|       {

Error: COMPILER_WARNING (CWE-704):
libxcrypt-4.4.38/lib/crypt-sm3-yescrypt.c: scope_hint: In function '_crypt_crypt_sm3_yescrypt_rn'
libxcrypt-4.4.38/lib/crypt-sm3-yescrypt.c:139:16: warning[-Wdiscarded-qualifiers]: initialization discards 'const' qualifier from pointer target type
#  139 |   char *hptr = strchr ((const char *) intbuf->retval + 3, '$');
#      |                ^~~~~~
#  137|   
#  138|     /* extract yescrypt output from "$y$param$salt$output" */
#  139|->   char *hptr = strchr ((const char *) intbuf->retval + 3, '$');
#  140|     if (!hptr)
#  141|       {

Error: COMPILER_WARNING (CWE-704):
libxcrypt-4.4.38/lib/crypt-sm3-yescrypt.c:139:16: warning[-Wdiscarded-qualifiers]: initialization discards 'const' qualifier from pointer target type
#  137|   
#  138|     /* extract yescrypt output from "$y$param$salt$output" */
#  139|->   char *hptr = strchr ((const char *) intbuf->retval + 3, '$');
#  140|     if (!hptr)
#  141|       {

Error: GCC_ANALYZER_WARNING (CWE-401):
libxcrypt-4.4.38/lib/crypt.c:264:3: warning[-Wanalyzer-malloc-leak]: leak of 'output'
libxcrypt-4.4.38/lib/crypt.c:338:1: enter_function: entry to '_crypt_crypt_gensalt_ra'
libxcrypt-4.4.38/lib/crypt.c:341:18: acquire_memory: allocated here
libxcrypt-4.4.38/lib/crypt.c:342:6: branch_false: following 'false' branch (when 'output' is non-NULL)...
libxcrypt-4.4.38/lib/crypt.c:345:18: branch_false: ...to here
libxcrypt-4.4.38/lib/crypt.c:345:18: call_function: calling '_crypt_crypt_gensalt_rn' from '_crypt_crypt_gensalt_ra'
#  262|                     int output_size)
#  263|   {
#  264|->   make_failure_token ("", output, output_size);
#  265|   
#  266|     /* Individual gensalt functions will check for adequate space for