Bug#1075379: pesign: ftbfs with GCC-14
Control: tags -1 + upstream fixed-upstream patch
Control: forwarded -1 https://github.com/rhboot/pesign/commit/1f9e2fa0b4d872fdd01ca3ba81b04dfb1211a187
> pesigcheck.c: In function ‘check_signature’:
> pesigcheck.c:243:34: error: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Werror=calloc-transposed-args]
> 243 | reasonps = calloc(sizeof(struct reason), 512);
> | ^~~~~~
> pesigcheck.c:243:34: note: earlier argument should specify number of elements, later size of each element
> pesigcheck.c:284:53: error: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Werror=calloc-transposed-args]
> 284 | new_reasons = calloc(sizeof(struct reason), num_reasons);
> | ^~~~~~
> pesigcheck.c:284:53: note: earlier argument should specify number of elements, later size of each element
Upstream fixed this here:
https://github.com/rhboot/pesign/commit/1f9e2fa0b4d872fdd01ca3ba81b04dfb1211a187
Should be easy to apply in Debian
Reply to: