[Rpm-maint] [PATCH 5/5] Fix handling of zero-length file digests
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
> 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
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rpm-maint