Home
last modified time | relevance | path

Searched hist:"21 cb052b1446bb006aa5e1f6fdfcc0bad678bb70" (Results 1 – 2 of 2) sorted by relevance

/openbmc/libpldm/src/dsp/
H A Dbios_table.cdiff 21cb052b1446bb006aa5e1f6fdfcc0bad678bb70 Fri Oct 04 06:31:06 CDT 2024 Andrew Jeffery <andrew@codeconstruct.com.au> dsp: bios_table: Bounds check pldm_bios_table_string_entry_encode()

```
../src/dsp/bios_table.c:82:9: error: use of attacker-controlled value ‘str_length’ as size without upper-bounds checking [CWE-129] [-Werror=analyzer-tainted-size]
82 | memcpy(string_entry->name, str, str_length);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```

Fixes: 9c76679224cf ("libpldm: Migrate to subproject")
Change-Id: I1aaa18b358c3e6c958b2d9643487016f2a9f5116
Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
/openbmc/libpldm/
H A DCHANGELOG.mddiff 21cb052b1446bb006aa5e1f6fdfcc0bad678bb70 Fri Oct 04 06:31:06 CDT 2024 Andrew Jeffery <andrew@codeconstruct.com.au> dsp: bios_table: Bounds check pldm_bios_table_string_entry_encode()

```
../src/dsp/bios_table.c:82:9: error: use of attacker-controlled value ‘str_length’ as size without upper-bounds checking [CWE-129] [-Werror=analyzer-tainted-size]
82 | memcpy(string_entry->name, str, str_length);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```

Fixes: 9c76679224cf ("libpldm: Migrate to subproject")
Change-Id: I1aaa18b358c3e6c958b2d9643487016f2a9f5116
Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>