diff options
| author | Ion Agorria <[email protected]> | 2024-01-05 09:22:10 +0200 |
|---|---|---|
| committer | Mattijs Korpershoek <[email protected]> | 2024-01-09 14:58:33 +0100 |
| commit | e58bafc35fe37491bb3546299593dcc054145adb (patch) | |
| tree | a50d65fe54980ff838d40d1a205433da49908d98 /boot | |
| parent | 90087dd076d42c196de3506b6fa4d052f0869670 (diff) | |
lib: membuff: fix readline not returning line in case of overflow
If line overflows readline it will not be returned, fix this behavior,
make it optional and documented properly.
Signed-off-by: Ion Agorria <[email protected]>
Signed-off-by: Svyatoslav Ryhel <[email protected]>
Reviewed-by: Mattijs Korpershoek <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mattijs Korpershoek <[email protected]>
Diffstat (limited to 'boot')
| -rw-r--r-- | boot/bootmeth_extlinux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/boot/bootmeth_extlinux.c b/boot/bootmeth_extlinux.c index aa2a4591ebd..ae0ad1d53e3 100644 --- a/boot/bootmeth_extlinux.c +++ b/boot/bootmeth_extlinux.c @@ -82,7 +82,7 @@ static int extlinux_fill_info(struct bootflow *bflow) log_debug("parsing bflow file size %x\n", bflow->size); membuff_init(&mb, bflow->buf, bflow->size); membuff_putraw(&mb, bflow->size, true, &data); - while (len = membuff_readline(&mb, line, sizeof(line) - 1, ' '), len) { + while (len = membuff_readline(&mb, line, sizeof(line) - 1, ' ', true), len) { char *tok, *p = line; tok = strsep(&p, " "); |
