strncat(dest,"AAAAAAAAAAAAAAAAAAAAAAAAAAAAA",sizeof(dest)-1);// expected-warning {{Potential buffer overflow. Replace with 'sizeof(dest) - strlen(dest) - 1' or use a safer 'strlcat' API}}
strlcpy(dest,src,20);// expected-warning {{The third argument allows to potentially copy more bytes than it should. Replace with the value sizeof(dest) or lower}}
strlcpy(dest,src,badlen);// expected-warning {{The third argument allows to potentially copy more bytes than it should. Replace with the value sizeof(dest) or lower}}
strlcpy(dest+5,src,10);// expected-warning {{The third argument allows to potentially copy more bytes than it should. Replace with the value sizeof(<destination buffer>) or lower}}
strlcat(dest,"0123456789",badlen);// expected-warning {{The third argument allows to potentially copy more bytes than it should. Replace with the value sizeof(dest) or lower}}
strlcat(dest,"0123456789",badlen-strlen(dest)-1);
strlcat(dest,src,ulen);
strlcpy(dest,src,5);
strlcat(dest+5,src,badlen);// expected-warning {{The third argument allows to potentially copy more bytes than it should. Replace with the value sizeof(<destination buffer>) or lower}}