mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-05 12:52:37 +01:00
eap-ttls: Bump up buffer sizes to quiet warnings
src/eap-ttls.c:766:50: error: ‘Password’ directive output may be truncated writing 8 bytes into a region of size between 1 and 72 [-Werror=format-truncation=] snprintf(password_key, sizeof(password_key), "%sPassword", prefix); ^~~~~~~~ In file included from /usr/include/stdio.h:862, from src/eap-ttls.c:28: /usr/include/bits/stdio2.h:64:10: note: ‘__builtin___snprintf_chk’ output between 9 and 80 bytes into a destination of size 72 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This commit is contained in:
parent
961e6d1480
commit
686f515e04
@ -386,7 +386,7 @@ static bool eap_ttls_phase2_non_eap_load_settings(struct phase2_method *phase2,
|
|||||||
const char *prefix)
|
const char *prefix)
|
||||||
{
|
{
|
||||||
struct phase2_credentials *credentials;
|
struct phase2_credentials *credentials;
|
||||||
char setting[72];
|
char setting[128];
|
||||||
|
|
||||||
credentials = l_new(struct phase2_credentials, 1);
|
credentials = l_new(struct phase2_credentials, 1);
|
||||||
|
|
||||||
@ -756,8 +756,8 @@ static int eap_ttls_check_tunneled_auth_settings(struct l_settings *settings,
|
|||||||
struct l_queue **out_missing)
|
struct l_queue **out_missing)
|
||||||
{
|
{
|
||||||
const struct eap_secret_info *secret;
|
const struct eap_secret_info *secret;
|
||||||
char identity_key[72];
|
char identity_key[128];
|
||||||
char password_key[72];
|
char password_key[128];
|
||||||
|
|
||||||
L_AUTO_FREE_VAR(char *, identity);
|
L_AUTO_FREE_VAR(char *, identity);
|
||||||
L_AUTO_FREE_VAR(char *, password) = NULL;
|
L_AUTO_FREE_VAR(char *, password) = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user