diff options
| author | Xiang W <[email protected]> | 2023-07-10 00:02:30 +0800 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2023-07-12 10:37:16 +0530 |
| commit | ff43168137a4890fe65460c1506fdf08c26bebad (patch) | |
| tree | dd2f657aa60b8271c44795f29e47d61de2fa4517 /lib/utils | |
| parent | cc89fa7b5481b3279f1628f71debf795d5618044 (diff) | |
lib: sbi: Fix timing of clearing tbuf
A single scan of the format char may add multiple characters to the
tbuf, causing a buffer overflow. You should check if tbuf is full in
printc so that it does not cause a buffer overflow.
Signed-off-by: Xiang W <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'lib/utils')
0 files changed, 0 insertions, 0 deletions
