[Rpm-maint] [PATCH 5/5] Fix handling of zero-length file digests
Stefan Berger
stefanb at us.ibm.com
Wed Apr 27 20:00:29 UTC 2016
"Rpm-maint" <rpm-maint-bounces at lists.rpm.org> wrote on 04/27/2016 05:45:56
AM:
>
> I get the following warning:
>
> ima.c:23:1: warning: ‘PACKED’ attribute directive ignored [-Wattributes]
> } __attribute__((PACKED));
>
> May be there is an simpler way to check for the header being zeros only?
One way of doing it would be to create an array of 9 zero bytes (with a
comment of what it represents) and compare against that.
I guess you wouldn't like gcc #pragma tricks to disable -Wattributes in
this case.
Stefan
>
> Florian
>
> --
>
> Red Hat GmbH, http://www.de.redhat.com/, Registered seat: Grasbrunn,
> Commercial register: Amtsgericht Muenchen, HRB 153243,
> Managing Directors: Paul Argiry, Charles Cachera, Michael Cunningham,
> Michael O'Neill
> _______________________________________________
> Rpm-maint mailing list
> Rpm-maint at lists.rpm.org
> http://lists.rpm.org/mailman/listinfo/rpm-maint
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20160427/031cb2b9/attachment.html>
More information about the Rpm-maint
mailing list