From: Joseph C. <jos...@in...> - 2010-07-27 02:29:36
|
changeset 58c596b67da9 in /var/www/tboot.hg details: tboot.hg?cmd=changeset;node=58c596b67da9 description: Fix build error (on some systems) in lcptools Signed-off-by: Frederic Guihery<sy...@ca...> ACKed-by: Joseph Cihula <jos...@in...> diffstat: lcptools/lcptools.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diffs (12 lines): diff -r f3eee2e5be78 -r 58c596b67da9 lcptools/lcptools.c --- a/lcptools/lcptools.c Mon Jul 26 19:16:45 2010 -0700 +++ b/lcptools/lcptools.c Mon Jul 26 19:32:19 2010 -0700 @@ -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 + (size_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; |