argus client coredump w/ -c flag.

James A. Robinson jimr at highwire.stanford.edu
Wed Sep 18 13:14:15 EDT 2013


Looks like the problem is that optarg isn't getting set
to a valid location, it appears to be crashing when
testing optarg[0] for the value '\\'.

argus-clients-3.0.7.5/common/argus_util.c
...
         case 'c':
            if (!(strncmp(parser->ArgusProgramName, "radium", 6))) {
               if ((chroot_dir = strdup(optarg)) == NULL)
                   ArgusLog (LOG_ERR, "strdup %s", strerror(errno));
            } else
            if (!(strncmp(parser->ArgusProgramName, "ragrep", 6))) {
               parser->cflag++;
            } else {
               parser->cflag++;
               if (optarg[0] == '\\') {
...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist1.pair.net/pipermail/argus/attachments/20130918/fa1aaf09/attachment.html>


More information about the argus mailing list