← Commit list

8636ad55df

Viktor Szakats
Viktor Szakats
2025-12-24
SUCCESS Duration: 202s

Subject

checksrc: ban `strcpy`

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

packages/OS400/os400sys.c+3 -0
@@ -711,6 +711,7 @@ char *Curl_ldap_get_dn_a(void *ld, LDAPMessage *entry)
ldap_memfree() and ldap_memalloc() does not exist. The solution is to
overwrite the EBCDIC buffer with ASCII to return it. */
+ /* !checksrc! disable BANNEDFUNC 1 */
strcpy(cp, cp2);
free(cp2);
return cp;
@@ -741,6 +742,7 @@ char *Curl_ldap_first_attribute_a(void *ld, LDAPMessage *entry,
ldap_memfree() and ldap_memalloc() does not exist. The solution is to
overwrite the EBCDIC buffer with ASCII to return it. */
+ /* !checksrc! disable BANNEDFUNC 1 */
strcpy(cp, cp2);
free(cp2);
return cp;
@@ -771,6 +773,7 @@ char *Curl_ldap_next_attribute_a(void *ld, LDAPMessage *entry,
ldap_memfree() and ldap_memalloc() does not exist. The solution is to
overwrite the EBCDIC buffer with ASCII to return it. */
+ /* !checksrc! disable BANNEDFUNC 1 */
strcpy(cp, cp2);
free(cp2);
return cp;
scripts/checksrc.pl+1 -0
@@ -110,6 +110,7 @@ my %banfunc = (
"sscanf" => 1,
"stat" => 1,
"strcat" => 1,
+ "strcpy" => 1,
"strdup" => 1,
"strerror" => 1,
"strncat" => 1,