the offending line that triggered it is in Python/getargs.c
in the convertsimple() function (the ival < INT_MIN comparsion):

        case 'i': {/* signed int */
                int *p = va_arg(*p_va, int *);
                long ival;
                if (float_argument_error(arg))
                        return converterr("integer<i>", arg, msgbuf, bufsize);
                ival = PyInt_AsLong(arg);
                if (ival == -1 && PyErr_Occurred())
                        return converterr("integer<i>", arg, msgbuf, bufsize);
                else if (ival > INT_MAX) {
                        PyErr_SetString(PyExc_OverflowError,
                                "signed integer is greater than maximum");
                        return converterr("integer<i>", arg, msgbuf, bufsize);
                }
                else if (ival < INT_MIN) {
                        PyErr_SetString(PyExc_OverflowError,
                                "signed integer is less than minimum");
                        return converterr("integer<i>", arg, msgbuf, bufsize);
                }
                else
                        *p = ival;
                break;
        }

aijus 5e userspace arm emulator was a great help for reproducing
this as i dint have a raspi.

--
cinap

Reply via email to