[prev in list] [next in list] [prev in thread] [next in thread]
List: trousers-tech
Subject: [TrouSerS-tech] [PATCH 00/17] Fixes issues raised by coverity tool
From: rmaciel () linux ! vnet ! ibm ! com
Date: 2014-04-09 18:41:08
Message-ID: cover.1397068345.git.rmaciel () linux ! vnet ! ibm ! com
[Download RAW message or body]
From: Richard Maciel <rmaciel@linux.vnet.ibm.com>
This set of patches is the end result of fixing issues reported by the
code analyser tool coverity. Note that most fixes are not really related
(I grouped the ones which were), but each patch is small enough (albeit
complex to understand the error which it relates to).
If anyone wants to have access to the coverity tool and see its entries
and comments I created for each one, please let me know.
Richard Maciel (17):
Unload_KM_KEYINFO called UnloadBlob_BYTE passing parameters in wrong
order
memcmp result was being trunc'ed before the test
Inserted missing va_end
Fixed modules where unitialized pointers could be freed
Fixed code reading data from freed pointer.
Added check to prevent buffer overflow in name buffer.
Fixed memory leak in ima_get_entry
Fixed memory leak in tcs_wrap_KeyControlOwner
Removed dangled global var sd and fixed test that wrongfully used it
Removing possibility of NULL-dereferencing pointer
Release delfamily_list lock in the case the object found is the tpm
one.
Fixed memory leak in function Transport_TerminateHandle
Prevents dereference of null when calling Tspi_Context_GetCapability
Prevents dereference of null when calling TCTP_SetCapability_Internal
Prevents dereference of null when call TCSP_NV_WriteValueAuth_Internal
Prevents dereference of null when call TCSP_NV_ReadValueAuth_Internal
Removed dead code from tpm_rsp_parse function
src/tcs/rpc/tcstp/rpc_key.c | 11 ++++++++---
src/tcs/rpc/tcstp/rpc_nv.c | 7 ++++---
src/tcs/rpc/tcstp/rpc_ps.c | 2 +-
src/tcs/tcs_context.c | 2 +-
src/tcs/tcs_evlog_imaem.c | 48 +++++++++++++++++++++++++++------------------
src/tcs/tcs_pbg.c | 5 +++--
src/tcs/tcsi_caps_tpm.c | 3 ++-
src/tcs/tcsi_nv.c | 2 +-
src/tcs/tcsi_ps.c | 2 ++
src/tcsd/svrside.c | 4 +---
src/tspi/obj_delfamily.c | 4 +++-
src/tspi/rpc/tcstp/rpc.c | 2 +-
src/tspi/tsp_auth.c | 4 +++-
src/tspi/tspi_caps.c | 18 +++++++++++------
14 files changed, 71 insertions(+), 43 deletions(-)
--
1.8.5.3
------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
TrouSerS-tech mailing list
TrouSerS-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/trousers-tech
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic