Debian Patches

Status for megactl/0.4.4-3

Patch Description Author Forwarded Bugs Origin Last update
0000-appstream-metainfo.patch [PATCH 2/5] Include home page and developer name in Appstream metadata file.
Changes proposed by the Debian Appstream metadata validator.
Petter Reinholdtsen <pere@hungry.com> invalid https://github.com/namiltd/megactl/commit/de686cc8fa08339652ce1a8c0fa7079ff2bf4575 2024-04-15
0010-logpage-long-long.patch [PATCH 3/5] Make sure logpage.c methods have consistent type when formatting long long values.
This fixes the following compiler warnings:

logpage.c: In function ‘friendlySize’:
logpage.c:110:41: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=]
110 | snprintf (bytes, sizeof bytes, "%3llu%s%s", b, suffix[k], unit);
| ~~~~^ ~
| | |
| | uint64_t {aka long unsigned int}
| long long unsigned int
| %3lu
logpage.c: In function ‘dumpLogPage’:
logpage.c:369:91: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 9 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=]
369 | fprintf (f, " %2d: timestamp %4ud%02uh: %10s %-30s seg:%u lba:%-8lld sk:%u asc:%u ascq:%u vs:%u\n", k, t->timestamp / 24, t->timestamp % 24, test, result, t->number, t->lba, t->sense_key, t->additional_sense_code, t->additional_sense_code_qualifier, t->vendor_specific);
| ~~~~~^ ~~~~~~
| | |
| long long int uint64_t {aka long unsigned int}
| %-8ld
Petter Reinholdtsen <pere@hungry.com> invalid https://github.com/namiltd/megactl/commit/4ff15f5a6945967fd8b46333b0b7f78778651c50 2024-04-15
0020-trunk-32-bit-addr.patch [PATCH 4/5] Added assert() to verify 32 bit addresses are not truncated during cast. Petter Reinholdtsen <pere@hungry.com> invalid https://github.com/namiltd/megactl/commit/175cacffd0c661f3e27e0a3db8a1c4d3dae03226 2024-04-15
0030-megaSasGetDeviceList-buf-size.patch [PATCH 5/5] Extend buffer size in megaSasGetDeviceList() to avoid too small buf size.
This solve the following compiler warning seen when building the Debian package:

megaioctl.c: In function ‘megaSasGetDeviceList’:
megaioctl.c:416:48: warning: array subscript ‘struct mega_device_list_sas[0]’ is partly outside array bounds of ‘unsigned char[32]’ [-Warray-bounds]
416 | len = ((struct mega_device_list_sas *) buf)->length;
| ^~
megaioctl.c:411:33: note: object ‘buf’ of size 32
411 | unsigned char buf[0x20];
| ^~~
Petter Reinholdtsen <pere@hungry.com> yes https://github.com/namiltd/megactl/pull/13 2024-04-15

All known versions for source package 'megactl'

Links