Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.security > #5408

I created a script to detect if an empty argv triggers a segfault

From Erik Sjölund <erik.sjolund@gmail.com>
Newsgroups linux.debian.security
Subject I created a script to detect if an empty argv triggers a segfault
Date 2018-05-01 13:10 +0200
Message-ID <vKBkt-1Q9-1@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Hi,
Dereferencing argv[0] without checking for argc == 0,
is most probably not a security issue, but it could be a sign for
a bit sloppy programming.

I created a test to see which programs segfault when started
with an empty argv
https://github.com/eriksjolund/empty-argv-segfault-check

Please have a look if anyone is interested.
Kind regards,
Erik Sjölund

Back to linux.debian.security | Previous | Next | Find similar | Unroll thread


Thread

I created a script to detect if an empty argv triggers a segfault Erik Sjölund <erik.sjolund@gmail.com> - 2018-05-01 13:10 +0200

csiph-web