[Toybox] [PATCH] mount: avoid deferencing NULL.

enh enh at google.com
Wed Mar 20 14:07:04 PDT 2024


I don't know why I wasn't seeing this yesterday, but I can't _not_ see
it today:

  newfstatat(AT_FDCWD, "/dev/block/loop6", {st_mode=S_IFBLK|0600,
st_rdev=makedev(7, 48), ...}, 0) = 0
  openat(AT_FDCWD, "/sys/block/loop48/loop/backing_file", O_RDONLY) = -1
ENOENT (No such file or directory)
  --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} ---
---
 toys/lsb/mount.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20240320/393244ba/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-mount-avoid-deferencing-NULL.patch
Type: text/x-patch
Size: 1054 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20240320/393244ba/attachment.bin>


More information about the Toybox mailing list