History log of /openbmc/libcper/sections/cper-section-generic.c (Results 1 – 13 of 13)
Revision Date Author Comments
# 379e492a 28-Aug-2024 Patrick Williams <patrick@stwcx.xyz>

Adjust strncpy sizes

When building under bitbake with the latest openbmc, we get compile
warnings such as these:

```
| ../git/sections/cper-section-nvidia.c: In function 'ir_section_nvidia_to_cper'

Adjust strncpy sizes

When building under bitbake with the latest openbmc, we get compile
warnings such as these:

```
| ../git/sections/cper-section-nvidia.c: In function 'ir_section_nvidia_to_cper':
| ../git/sections/cper-section-nvidia.c:67:9: error: '__builtin_strncpy' specified bound 16 equals destination size [-Werror=stringop-truncation]
| 67 | strncpy(section_cper->Signature,
```

Using `strncpy` on its own is unsafe because a string too long will
end up in the destination buffer without NUL termination. Adjust
the strncpy to be one shorter than the buffer and force the trailing
byte to be a NUL.

Repeat this pattern for all `strncpy` calls.

Change-Id: I45c630733f0138d2b089a60f698d75e1c09de9e2
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>

show more ...


# fedd457d 12-Jul-2024 Ed Tanous <ed@tanous.net>

Remove trailing whitespace

clang-format won't remove trailing whitespace if that's the only change.
Fix them all.

Change-Id: Ic6e14af43cdd11905d3b58430d49b9ec1484f812
Signed-off-by: Ed Tanous <ed@t

Remove trailing whitespace

clang-format won't remove trailing whitespace if that's the only change.
Fix them all.

Change-Id: Ic6e14af43cdd11905d3b58430d49b9ec1484f812
Signed-off-by: Ed Tanous <ed@tanous.net>

show more ...


# f8fc7052 03-May-2024 John Chung <john.chung@arm.com>

Formatting .c/.h files and fix memory leakage issues

Signed-off-by: John Chung <john.chung@arm.com>
Change-Id: Id8328f412c2724992d80c0b3f895c8f85bc4ae68


# 5202bbb4 12-Aug-2022 Lawrence Tang <lawrence.tang@arm.com>

Source json.h non-locally.

Change-Id: Ia42c41fde74596b394a1f7ae0021f1a5510991a8


# e407b4c8 21-Jul-2022 Lawrence Tang <lawrence.tang@arm.com>

Partial reformat to kernel code style.


# aacf0e26 20-Jul-2022 Lawrence Tang <lawrence.tang@arm.com>

Add fixes based on test fuzzing.


# 67cbed6b 18-Jul-2022 Lawrence Tang <lawrence.tang@arm.com>

Squash minor ARM CPER issues, add ARM generation.


# 0cb33793 13-Jul-2022 Lawrence Tang <lawrence.tang@arm.com>

Add section descriptor parsing, generic processor error.


# 9a785c2a 07-Jul-2022 Lawrence Tang <lawrence.tang@arm.com>

Add CPU information to generic/IA32/x64 sections.


# 22a467ce 05-Jul-2022 Lawrence Tang <lawrence.tang@arm.com>

Fix hanging issues.


# 794312c8 05-Jul-2022 Lawrence Tang <lawrence.tang@arm.com>

Add untested IA32/x64 log support.


# 3c43f743 05-Jul-2022 Lawrence Tang <lawrence.tang@arm.com>

Add support for processor generic sections.


# 1b0b00e3 05-Jul-2022 Lawrence Tang <lawrence.tang@arm.com>

Add initial version with header/secdesc parsing.