Bug 14756

Summary: busybox segfaults when argv[0]==NULL
Product: Busybox Reporter: Thiner Logoer <logoerthiner1>
Component: OtherAssignee: unassigned
Status: NEW ---    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description Thiner Logoer 2022-04-17 17:48:23 UTC
This is a fairly old bug (feature?)

```
python3 -c "import ctypes;print(ctypes.CDLL('libc.so.6').execve(b'/sbin/busybox',0,0))"
```

This makes busybox segfault. busybox could have a better way to deal with it, for example assume the applet is "" or "busybox" or get the path from `/proc/self/exe`, depending on the case. Even if rejecting argv[0]=NULL is a feature,  `exit(1)` should be better than segfault, as segfault is effectively a ub.