|
From: Frédéric G. <sy...@ca...> - 2010-07-26 20:56:42
|
With the attached file, it should be better.
Le 26/07/2010 22:54, Frédéric Guihéry a écrit :
> Hi,
>
> Here is a tiny patch that fixes some issues I met building tboot.
>
> Kind regards,
> Frederic Guihery
>
> Signed-off-by: Frederic Guihery<sy...@ca...>
>
>
> diff -r 57ea1beb3bc8 lcptools/Makefile
> --- a/lcptools/Makefile Thu Jul 22 22:19:08 2010 -0700
> +++ b/lcptools/Makefile Mon Jul 26 22:33:28 2010 +0200
> @@ -75,7 +75,7 @@
> #
>
> trousers_dep:
> - @echo -e "#include<trousers/tss.h>" | $(CC) -x c $(CFLAGS)
> $(LDFLAGS) $(LIBS) - -Wl,--defsym=main=0 -o $@>/dev/null 2>&1 || (echo
> trousers-devel package is not installed&& false)
> + @echo -e "#include<trousers/tss.h>" | $(CC) -x c $(CFLAGS)
> $(LDFLAGS) $(LIBS) -Wl,--defsym=main=0 -o $@>/dev/null 2>&1 || (echo
> trousers-devel package is not installed&& false)
>
> #
> # dependencies
> diff -r 57ea1beb3bc8 lcptools/lcptools.c
> --- a/lcptools/lcptools.c Thu Jul 22 22:19:08 2010 -0700
> +++ b/lcptools/lcptools.c Mon Jul 26 22:33:28 2010 +0200
> @@ -736,7 +736,7 @@
> pcr_length = select + sizeof(select)
> + sizeof(TPM_LOCALITY_SELECTION) +
> SHA1_HASH_LEN;
> /* check whether the data input is long enough */
> - if ( (pcr_length + (pread_data - src.listdata) -2)
> + if ( (pcr_length + (uint32_t)(pread_data -
> src.listdata) - 2)
> > src.listdata_length ) {
> log_error("the policy list data is not correct\n");
> result = LCP_E_COMD_INTERNAL_ERR;
>
|