Re: Build error: fwts_acpi_tables.c "‘strncat’ specified bound 2 equals source length"
Alex Hung
alex.hung at canonical.com
Wed Jan 13 08:15:07 UTC 2021
I tried building it on Ubuntu 20.04 + gcc (Ubuntu/Linaro 8.4.0-3ubuntu2)
8.4.0 on aarch64 (raspberry pi 4) and cannot duplicate it.
I don't debian + gcc 8.3.0 on aarch64 at the moment. You may want to revert
the problematic commit first before this is fixed.
On Wed, Jan 13, 2021 at 12:33 AM Rebecca Cran <rebecca at nuviainc.com> wrote:
> I'm getting a build error on Debian aarch64, with gcc 8.3.0 and the
> latest master (b8b673c3f232efcd15ad9693386b3dd195d1dfa1):
>
> fwts_acpi_tables.c: In function ‘fwts_acpi_space_id_check’:
> fwts_acpi_tables.c:1683:4: error: ‘strncat’ specified bound 2 equals
> source length [-Werror=stringop-overflow=]
> strncat(must_be_id, ", ", 2);
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> fwts_acpi_tables.c:1685:4: error: ‘strncat’ specified bound 4 equals
> source length [-Werror=stringop-overflow=]
> strncat(must_be_id, " or ", 4);
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
> --
> Rebecca Cran
>
> --
> fwts-devel mailing list
> fwts-devel at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/fwts-devel
>
--
Cheers,
Alex Hung
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/fwts-devel/attachments/20210113/9af649d1/attachment.html>
More information about the fwts-devel
mailing list