HomeFreeBSD

Fix buffer underflow if sysfs file is empty

Description

Fix buffer underflow if sysfs file is empty

Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Jason Lee <jasonlee@lanl.gov>
Signed-off-by: Robert Evans <evansr@google.com>
Closes #16028
Closes #16035

Details

Provenance
Robert Evans <evansr@google.com>Authored on Mar 29 2024, 9:59 PM
GitHub <noreply@github.com>Committed on Mar 29 2024, 9:59 PM
Parents
rGcfb96c772b84: vdev_disk: clean up spa/bdev mode conversion
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG2553f94c4299: Fix buffer underflow if sysfs file is empty (authored by Robert Evans <evansr@google.com>).Mar 29 2024, 9:59 PM