Snippets for altermime 0.3.11 from Nix x86_64-linux
Sourced from https://hydra.nixos.org/log/ydwf5l58awswk1afyixklay6kqr6vh5m-altermime-0.3.11.drv.
-
mime_alter.c:1546:59: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] 1546 | snprintf(boundary, sizeof(boundary), "--%s", dd->boundary); | ^ -
/nix/store/29isvm6vfq10c528i31igdiy3fnvjcm3-glibc-2.42-67-dev/include/bits/stdio2.h:68:10: warning: '__builtin___snprintf_chk' argument 6 overlaps destination object 'tpn' [-Wrestrict] 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -
pldstr.c:300:37: warning: comparison between pointer and zero character constant [-Wpointer-compare] 300 | if ((st->start)&&(st->start != '\0')) | ^~ -
MIME_headers.c:3037:9: warning: 'memset' used with length equal to number of elements without multiplication by element size [-Wmemset-elt-size] 3037 | memset(hinfo->defects, 0, _MIMEH_DEFECT_ARRAY_SIZE); | ^~~~~~ -
MIME_headers.c:788:64: warning: '/doubleCR.' directive output may be truncated writing 10 bytes into a region of size between 0 and 1023 [-Wformat-truncation=] 788 | snprintf(glb.doubleCRname,_MIMEH_STRLEN_MAX,"%s/doubleCR.%d",glb.output_dir,glb.doubleCR_count); | ^~~~~~~~~~ -
MIME_headers.c:2015:93: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 129 [-Wformat-truncation=] 2015 | snprintf(hinfo->filename, sizeof(hinfo->filename), "%s.applemeta", glb.appledouble_filename ); | ^~ ~~~~~~~~~~~~~~~~~~~~~~~~ -
MIME_headers.c:2502:86: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 129 [-Wformat-truncation=] 2502 | snprintf( hinfo->filename, sizeof(hinfo->filename), "%s", hinfo->name ); | ^~ -
MIME_headers.c:2925:50: warning: '%s' directive output may be truncated writing up to 128 bytes into a region of size 124 [-Wformat-truncation=] 2925 | snprintf( tmp, sizeof(tmp), "mac-%s", hinfo->filename ); | ^~ -
qpe.c:94:64: warning: format '%d' expects argument of type 'int', but argument 5 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] 94 | fprintf(stderr,"%s:%d:DEBUG: Line terminator length = %d", FL, strlen(line_terminator)); | ~^ ~~~~~~~~~~~~~~~~~~~~~~~ | | | | int size_t {aka long unsigned int} | %ld -
qpe.c:109:29: warning: comparison between pointer and zero character constant [-Wpointer-compare] 109 | if (lineend != '\0') { | ^~ -
altermime.c:378:54: warning: '%ld' directive output may be truncated writing between 1 and 20 bytes into a region of size between 0 and 1023 [-Wformat-truncation=] 378 | snprintf(scratch,sizeof(scratch),"%s/%ld%d.amtmp", glb.tmpdir, time(NULL), getpid()); | ^~~