{"push_id":867897885,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"f9357cdec1235168590283abe027e501633755a5","before":"fbe855ba29229ad92c911898044409eb6784a079","commits":[{"sha":"f9357cdec1235168590283abe027e501633755a5","author":{"email":"7ea35d812706d9213868749011af1ed4fa2f6aa0@google.com","name":"Austin Clements"},"message":"runtime: check for updated arena_end overflow\n\nCurrently, if an allocation is large enough that arena_end + size\noverflows (which is not hard to do on 32-bit), we go ahead and call\nsysReserve with the impossible base and length and depend on this to\neither directly fail because the kernel can't possibly fulfill the\nrequested mapping (causing mheap.sysAlloc to return nil) or to succeed\nwith a mapping at some other address which will then be rejected as\noutside the arena.\n\nIn order to make this less subtle, less dependent on the kernel\ngetting all of this right, and to eliminate the hopeless system call,\nadd an explicit overflow check.\n\nUpdates #13143. This real issue has been fixed by 0de59c2, but this is\na belt-and-suspenders improvement on top of that. It was uncovered by\nmy symbolic modeling of that bug.\n\nChange-Id: I85fa868a33286fdcc23cdd7cdf86b19abf1cb2d1\nReviewed-on: https://go-review.googlesource.com/16961\nRun-TryBot: Austin Clements <austin@google.com>\nTryBot-Result: Gobot Gobot <gobot@golang.org>\nReviewed-by: Ian Lance Taylor <iant@golang.org>","distinct":true,"url":"https://api.github.com/repos/golang/go/commits/f9357cdec1235168590283abe027e501633755a5"}]}