]> granicus.if.org Git - python/commit
Fix out of bounds read in long_new() for empty bytes with an explicit base. int(b...
authorChristian Heimes <christian@cheimes.de>
Wed, 12 Sep 2012 13:31:43 +0000 (15:31 +0200)
committerChristian Heimes <christian@cheimes.de>
Wed, 12 Sep 2012 13:31:43 +0000 (15:31 +0200)
commit79b97ee2ab2620921d409ed4010e84f6c227b470
tree7713ef1b17697ca8f6c2170170a71ed80fea6394
parent4b2f9e914d497d6b2b5ec09a03da8b6f171dffed
Fix out of bounds read in long_new() for empty bytes with an explicit base. int(b'', somebase) calls PyLong_FromString() with char* of length 1 but the function accesses the first argument at offset 1. CID 715359
Objects/longobject.c