cmdutils.c:277: error: Integer Overflow L2
  ([0, 2147483647] + 1):signed32.

cmdutils.c:276:15: <LHS trace>
274. {
275. #if HAVE_SETRLIMIT
276.     int lim = parse_number_or_die(opt, arg, OPT_INT64, 0, INT_MAX);
                   ^
277.     struct rlimit rl = { lim, lim + 1 };
278.     if (setrlimit(RLIMIT_CPU, &rl))

cmdutils.c:276:15: Call
274. {
275. #if HAVE_SETRLIMIT
276.     int lim = parse_number_or_die(opt, arg, OPT_INT64, 0, INT_MAX);
                   ^
277.     struct rlimit rl = { lim, lim + 1 };
278.     if (setrlimit(RLIMIT_CPU, &rl))

cmdutils.c:64:1: Parameter `min`
  62. }
  63. 
  64. double parse_number_or_die(const char *context, const char *numstr, int type, double min, double max)
      ^
  65. {
  66.     char *tail;

cmdutils.c:76:9: Assignment
  74.         error= "Expected int64 for %s but found %s\n";
  75.     else
  76.         return d;
              ^
  77.     fprintf(stderr, error, context, numstr, min, max);
  78.     exit(1);

cmdutils.c:276:5: Assignment
274. {
275. #if HAVE_SETRLIMIT
276.     int lim = parse_number_or_die(opt, arg, OPT_INT64, 0, INT_MAX);
         ^
277.     struct rlimit rl = { lim, lim + 1 };
278.     if (setrlimit(RLIMIT_CPU, &rl))

cmdutils.c:277:24: Binary operation: ([0, 2147483647] + 1):signed32
275. #if HAVE_SETRLIMIT
276.     int lim = parse_number_or_die(opt, arg, OPT_INT64, 0, INT_MAX);
277.     struct rlimit rl = { lim, lim + 1 };
                            ^
278.     if (setrlimit(RLIMIT_CPU, &rl))
279.         perror("setrlimit");

int opt_timelimit(const char *opt, const char *arg)
{
#if HAVE_SETRLIMIT
    int lim = parse_number_or_die(opt, arg, OPT_INT64, 0, INT_MAX);
    struct rlimit rl = { lim, lim + 1 };
    if (setrlimit(RLIMIT_CPU, &rl))
        perror("setrlimit");
#else
    fprintf(stderr, "Warning: -%s not implemented on this OS\n", opt);
#endif
    return 0;
}
['int opt_timelimit(const char *opt, const char *arg)\n{\n#if HAVE_SETRLIMIT\n    int lim = parse_number_or_die(opt, arg, OPT_INT64, 0, INT_MAX);\n    struct rlimit rl = { lim, lim + 1 };\n    if (setrlimit(RLIMIT_CPU, &rl))\n        perror("setrlimit");\n#else\n    fprintf(stderr, "Warning: -%s not implemented on this OS\\n", opt);\n#endif\n    return 0;\n}', 'double parse_number_or_die(const char *context, const char *numstr, int type, double min, double max)\n{\n    char *tail;\n    const char *error;\n    double d = av_strtod(numstr, &tail);\n    if (*tail)\n        error= "Expected number for %s but found: %s\\n";\n    else if (d < min || d > max)\n        error= "The value for %s was %s which is not within %f - %f\\n";\n    else if(type == OPT_INT64 && (int64_t)d != d)\n        error= "Expected int64 for %s but found %s\\n";\n    else\n        return d;\n    fprintf(stderr, error, context, numstr, min, max);\n    exit(1);\n}']