herm1t LIVE!ng room - [entries|archive|friends|userinfo]
herm1t

[ website | twilight corner in the herm1t's cave ]
[ userinfo | ljr userinfo ]
[ archive | journal archive ]

[Jul. 26th, 2012|02:20 pm]
Previous Entry Add to Memories Tell A Friend Next Entry
LinkLeave a comment

Comments:
From:(Anonymous)
Date:July 26th, 2012 - 02:59 pm
(Link)
./some/path/mount -> mount
[User Picture]
From:[info]herm1t
Date:July 26th, 2012 - 03:02 pm
(Link)
$ cat > 1.c
main() { execve("/bin/mount", 0, 0); }
$ gcc 1.c && ./a.out
Segmentation fault
$
From:[info]max630.net
Date:July 26th, 2012 - 08:32 pm
(Link)
если execv запускать с argv=0 - вообще много крови будет.