From: Andrew Cooper Subject: [PATCH 1/2] firmware/tcgbios: Prevent integer truncation in the return value Date: Mon, 25 Nov 2013 11:04:20 +0000 Message-ID: <1385377461-20763-2-git-send-email-andrew.cooper3@citrix.com> References: <1385377461-20763-1-git-send-email-andrew.cooper3@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1385377461-20763-1-git-send-email-andrew.cooper3@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Xen-devel Cc: Ian Jackson , Andrew Cooper , Keir Fraser , Ian Campbell , Jan Beulich List-Id: xen-devel@lists.xenproject.org rc inside the function is uint32_t. None of the callers check the return value. Coverity ID: 1055442 Signed-off-by: Andrew Cooper CC: Keir Fraser CC: Jan Beulich CC: Ian Campbell CC: Ian Jackson --- tools/firmware/rombios/32bit/tcgbios/tcgbios.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/firmware/rombios/32bit/tcgbios/tcgbios.c b/tools/firmware/rombios/32bit/tcgbios/tcgbios.c index d5e2202..01d4f2f 100644 --- a/tools/firmware/rombios/32bit/tcgbios/tcgbios.c +++ b/tools/firmware/rombios/32bit/tcgbios/tcgbios.c @@ -428,7 +428,7 @@ uint32_t tcpa_get_laml(void) * data : pointer to the data (i.e., string) to be added to the log * length : length of the data */ -static uint16_t +static uint32_t tcpa_add_measurement_to_log(uint32_t pcrIndex, uint32_t event_type, uint32_t event_id, -- 1.7.10.4