You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Line 438 of spf_server.c reads the size of SPF_VER_STR, which is always 6 by definition, as no code redefines its value. The runtime value of "e" is affected.
./src/include/spf.h:35:#define SPF_VER_STR "v=spf1"
./src/libspf2/spf_server.c:438:13: warning: array index 6 is past the end of the array (which contains 1 element) [-Warray-bounds]
char e = rr_txt->rr[i]->txt[sizeof(SPF_VER_STR) - 1];
^ ~~~~~~~~~~~~~~~~~~~~~~~
../../src/include/spf_dns_rr.h:36:5: note: array 'txt' declared here
char txt[1];
^
The text was updated successfully, but these errors were encountered:
hdatma
changed the title
spf_server.c:438
spf_server.c:438 --- array index 6 is past the end of the array (which contains 1 element)
Jan 1, 2021
Line 438 of spf_server.c reads the size of SPF_VER_STR, which is always 6 by definition, as no code redefines its value. The runtime value of "e" is affected.
The text was updated successfully, but these errors were encountered: