[PATCH 2/8] elf: Verify the tunable cache header signature and version

DJ Delorie dj@redhat.com
Thu Jul 9 02:04:11 GMT 2026


Adhemerval Zanella <adhemerval.zanella@linaro.org> writes:
> +  /* Reject data produced by a different tunable cache format.  */
> +  if (thc->signature != TUNCONF_SIGNATURE || thc->version != TUNCONF_VERSION)
> +    return NULL;

In the future, we'll have to handle multiple versions, but this works
for now.

LGTM
Reviewed-by: DJ Delorie <dj@redhat.com>



More information about the Libc-alpha mailing list