Snippets for libgphoto2 2.5.34 from Nix x86_64-linux
Sourced from https://hydra.nixos.org/log/s4ypmhz22xaiccilhzivxb2ar97jbmai-libgphoto2-2.5.34.drv.
-
gphoto2-camera.c:1620:17: warning: '__builtin_strncpy' specified bound 64 equals destination size [-Wstringop-truncation] 1620 | strncpy (info->preview.type, mime_type, | ^ -
gphoto2-file.c:666:17: warning: '__builtin_strncpy' specified bound 256 equals destination size [-Wstringop-truncation] 666 | strncpy (file->name, filename, sizeof (file->name)); | ^ -
gphoto2-file.c:664:17: warning: '__builtin_strncpy' specified bound 256 equals destination size [-Wstringop-truncation] 664 | strncpy (file->name, name + 1, sizeof (file->name)); | ^ -
gphoto2-file.c:673:33: warning: '__builtin_strncpy' specified bound 64 equals destination size [-Wstringop-truncation] 673 | strncpy (file->mime_type, mime_table[i+1], sizeof(file->mime_type)); | ^ -
gphoto2-file.c:1009:9: warning: '__builtin_strncpy' specified bound 256 equals destination size [-Wstringop-truncation] 1009 | strncpy (file->name, name, sizeof (file->name)); | ^ -
gphoto2-file.c:1026:9: warning: '__builtin_strncpy' specified bound 64 equals destination size [-Wstringop-truncation] 1026 | strncpy (file->mime_type, mime_type, sizeof (file->mime_type)); | ^ -
gphoto2-filesys.c:1433:17: warning: '__builtin_strncpy' specified bound 128 equals destination size [-Wstringop-truncation] 1433 | strncpy (path, folder, sizeof (path)); | ^ -
gphoto2-setting.c:210:40: warning: '/gphoto' directive output may be truncated writing 7 bytes into a region of size between 1 and 1024 [-Wformat-truncation=] 210 | snprintf (dir, GP_PATH_MAX, "%s/gphoto", xdg_config_home); | ^~~~~~~ -
gphoto2-setting.c:211:41: warning: '/settings' directive output may be truncated writing 9 bytes into a region of size between 1 and 1024 [-Wformat-truncation=] 211 | snprintf (path, GP_PATH_MAX, "%s/settings", dir); | ^~~~~~~~~ -
canon/canon.c:689:9: warning: '__builtin_strncpy' specified bound 32 equals destination size [-Wstringop-truncation] 689 | strncpy (camera->pl->ident, (char *) msg + 12, 32); | ^ -
canon/canon.c:697:17: warning: '__builtin_strncpy' specified bound 32 equals destination size [-Wstringop-truncation] 697 | strncpy (camera->pl->owner, (char *) msg + 4, 32); | ^ -
canon/canon.c:691:17: warning: '__builtin_strncpy' specified bound 32 equals destination size [-Wstringop-truncation] 691 | strncpy (camera->pl->owner, (char *) msg + 44, 32); | ^ -
canon/canon.c:1297:9: warning: '__builtin_strncpy' specified bound 128 equals destination size [-Wstringop-truncation] 1297 | strncpy ( path->name, _("*UNKNOWN*"), sizeof(path->name) ); | ^ -
canon/canon.c:1330:33: warning: '__builtin_strncpy' specified bound 128 equals destination size [-Wstringop-truncation] 1330 | strncpy ( path->name, new_name, sizeof(path->name) ); | ^ -
canon/canon.c:1331:33: warning: '__builtin_strncpy' output may be truncated copying 1024 bytes from a string of length 1999 [-Wstringop-truncation] 1331 | strncpy ( path->folder, canon2gphotopath ( camera, path->folder ), sizeof(path->folder) ); | ^ -
canon/canon.c:2881:33: warning: '__builtin_strncpy' specified bound 128 equals destination size [-Wstringop-truncation] 2881 | strncpy ( name_local, name, sizeof(name_local) ); | ^ -
canon/canon.c:3335:41: warning: '__builtin_strncpy' specified bound 64 equals destination size [-Wstringop-truncation] 3335 | strncpy (info.file.type, | ^ -
canon/canon.c:3896:41: warning: '__builtin_strncpy' specified bound 64 equals destination size [-Wstringop-truncation] 3896 | strncpy (info->file.type, | ^ -
canon/library.c:350:9: warning: '__builtin_strncpy' specified bound 32768 equals destination size [-Wstringop-truncation] 350 | strncpy (manual->text, | ^ -
docupen/docupen.c:88:34: warning: comparison is always false due to limited range of data type [-Wtype-limits] 88 | if (camera->pl->info.len > sizeof(struct dp_info)) { | ^ -
docupen/image.c:195:111: warning: comparison of integer expressions of different signedness: 'int' and 'uint32_t' {aka 'unsigned int'} [-Wsign-compare] 195 | ((le16toh(dp->sizex) * le16toh(dp->sizey) * 3) / (le16toh(dp->type) == TYPE_COLOR12 ? 2 : 1) > le32toh(dp->payloadlen))) | ^ -
jl2005a/library.c:158:35: warning: initializer-string for array of 'unsigned char' truncates NUL terminator but destination lacks 'nonstring' attribute (6 chars into 5 available) [-Wunterminated-string-initialization] 158 | unsigned char header[5] = "\xff\xff\xff\xff\x55"; | ^~~~~~~~~~~~~~~~~~~~~~ -
kodak/dc240/library.c:634:5: warning: '__builtin_strncpy' specified bound 11 equals destination size [-Wstringop-truncation] 634 | strncpy (table->volumeID, (char*)&fdata[16], 11); | ^ -
kodak/dc240/library.c:636:5: warning: '__builtin_strncpy' specified bound 32 equals destination size [-Wstringop-truncation] 636 | strncpy (table->cameraID, (char*)&fdata[28], 32); | ^ -
kodak/dc240/library.c:670:5: warning: '__builtin_strncpy' specified bound 11 equals destination size [-Wstringop-truncation] 670 | strncpy (table->borderFileName, (char*)&fdata[140], 11); | ^ -
lumix/lumix.c:1660:9: warning: '__builtin_strncpy' specified bound 128 equals destination size [-Wstringop-truncation] 1660 | strncpy(path->name, s, sizeof(path->name)); | ^ -
ptp2/ptp.c:1423:32: warning: comparison of integer expressions of different signedness: 'int' and 'uint32_t' {aka 'unsigned int'} [-Wsign-compare] 1423 | if (count * structsize > blobsize) { | ^ -
ptp2/ptp-pack.c:504:9: warning: '__builtin_strncpy' specified bound 40 equals destination size [-Wstringop-truncation] 504 | strncpy (ptpdate, str, sizeof(ptpdate)); | ^ -
ptp2/ptp.c:1222:9: warning: '__builtin_strncpy' specified bound 4 equals destination size [-Wstringop-truncation] 1222 | strncpy(pictinfo->fileext, (char*)data+28, 4); | ^ -
ptp2/ptp.c:5087:17: warning: '__builtin_strncpy' specified bound 16 equals destination size [-Wstringop-truncation] 5087 | strncpy(params->wifi_profiles[profn].creation_date, buffer, sizeof(params->wifi_profiles[profn].creation_date)); | ^ -
ptp2/ptp.c:5094:17: warning: '__builtin_strncpy' specified bound 16 equals destination size [-Wstringop-truncation] 5094 | strncpy(params->wifi_profiles[profn].lastusage_date, buffer, sizeof(params->wifi_profiles[profn].lastusage_date)); | ^ -
ptp2/ptp.c:5180:9: warning: '__builtin_strncpy' output may be truncated copying 16 bytes from a string of length 16 [-Wstringop-truncation] 5180 | strncpy((char*)&buffer[0x05], profile->profile_name, 16); | ^ -
ptp2/ptp.c:5203:9: warning: '__builtin_strncpy' output may be truncated copying 32 bytes from a string of length 32 [-Wstringop-truncation] 5203 | strncpy((char*)&buffer[0x4A], profile->essid, 32); | ^ -
ptp2/library.c:3424:9: warning: '__builtin_strncpy' specified bound 128 equals destination size [-Wstringop-truncation] 3424 | strncpy (path->name, (*ob)->oi.Filename, sizeof(path->name)); | ^ -
ptp2/config.c:3878:75: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 3878 | if (abs((int)(val - dpd->FORM.Enum.SupportedValue[i].u32))<delta) { | ^ -
ptp2/config.c:11181:17: warning: '__builtin_strncpy' output may be truncated copying 16 bytes from a string of length 1023 [-Wstringop-truncation]
-
ptp2/config.c:11183:17: warning: '__builtin_strncpy' output may be truncated copying 32 bytes from a string of length 1023 [-Wstringop-truncation]
-
sierra/library.c:1426:17: warning: '__builtin_strncpy' specified bound 1024 equals destination size [-Wstringop-truncation] 1426 | strncpy (filepath->folder, folder, sizeof (filepath->folder)); | ^