]> 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:32:06 +0000 (15:32 +0200)
committerChristian Heimes <christian@cheimes.de>
Wed, 12 Sep 2012 13:32:06 +0000 (15:32 +0200)
commit7ae251a0256686a0583a371a0c6421b6fd8366bf
tree85ad39841b57d78e4560be947bd1900ae0632428
parent0ae066b28141ec96504f30eb2a32206896853935
parent79b97ee2ab2620921d409ed4010e84f6c227b470
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