mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6: TPM: get_event_name stack corruption
This commit is contained in:
commit
4fe1103201
1 changed files with 2 additions and 1 deletions
|
@ -212,7 +212,8 @@ static int get_event_name(char *dest, struct tcpa_event *event,
|
|||
unsigned char * event_entry)
|
||||
{
|
||||
const char *name = "";
|
||||
char data[40] = "";
|
||||
/* 41 so there is room for 40 data and 1 nul */
|
||||
char data[41] = "";
|
||||
int i, n_len = 0, d_len = 0;
|
||||
struct tcpa_pc_event *pc_event;
|
||||
|
||||
|
|
Loading…
Reference in a new issue