apps/rehash.c:504: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned64 by call to `do_dir`.
Showing all 8 steps of the trace


apps/rehash.c:473:17: Call
471.   
472.       prog = opt_init(argc, argv, rehash_options);
473.       while ((o = opt_next()) != OPT_EOF) {
                       ^
474.           switch (o) {
475.           case OPT_EOF:

apps/opt.c:626:9: Assignment
  624.       /* If we have --flag=foo, snip it off */
  625.       if ((arg = strchr(p, '=')) != NULL)
  626.           *arg++ = '\0';
                 ^
  627.       for (o = opts; o->name; ++o) {
  628.           /* If not this option, move on to the next one. */

apps/rehash.c:504:21: Call
502.       if (*argv != NULL) {
503.           while (*argv != NULL)
504.               errs += do_dir(*argv++, h);
                           ^
505.       } else if ((env = getenv("SSL_CERT_DIR")) != NULL) {
506.           m = OPENSSL_strdup(env);

apps/rehash.c:321:1: Parameter `dirname->strlen`
  319.    * Process a directory; return number of errors found.
  320.    */
  321. > static int do_dir(const char *dirname, enum Hash h)
  322.   {
  323.       BUCKET *bp, *nextbp;

apps/rehash.c:340:27: Call
  338.       }
  339.       buflen = strlen(dirname);
  340.       pathsep = (buflen && !ends_with_dirsep(dirname)) ? "/": "";
                                   ^
  341.       buflen += NAME_MAX + 1 + 1;
  342.       buf = app_malloc(buflen, "filename buffer");

apps/rehash.c:286:1: <LHS trace>
284.   }
285.   
286. > static int ends_with_dirsep(const char *path)
287.   {
288.       if (*path != '\0')

apps/rehash.c:286:1: Parameter `path->strlen`
    284.   }
    285.   
    286. > static int ends_with_dirsep(const char *path)
    287.   {
    288.       if (*path != '\0')

apps/rehash.c:289:9: Binary operation: ([0, +oo] - 1):unsigned64 by call to `do_dir` 
    287.   {
    288.       if (*path != '\0')
    289.           path += strlen(path) - 1;
                   ^
    290.   # if defined __VMS
    291.       if (*path == ']' || *path == '>' || *path == ':')
