[PATCH] [sanitizer] Fix overflow in SizeClassAllocator64::GetChunkIdx().

Kostya Serebryany kcc at google.com
Thu May 16 00:13:22 PDT 2013


  >> Do we know the upper limit for size?
  We can set one. E.g. 64G from a single size class.
  >> We could divide both operands by a constant using shifts.
  Exactly!
  I've added a test for this: DISABLED_SizeClassAllocator64GetBlockBegin

http://llvm-reviews.chandlerc.com/D797



More information about the llvm-commits mailing list