• Armin Rigo's avatar
    A review of overflow-detecting code in the 2.4 branch. · b2d0f342
    Armin Rigo yazdı
    * unified the way intobject, longobject and mystrtoul handle
      values around -sys.maxint-1.
    
    * in general, trying to entierely avoid overflows in any computation
      involving signed ints or longs is extremely involved.  Fixed a few
      simple cases where a compiler might be too clever (but that's all
      guesswork).
    
    * more overflow checks against bad data in marshal.c.
    b2d0f342
intobject.c 27.3 KB