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

Kostya Serebryany kcc at google.com
Wed May 15 22:27:05 PDT 2013


  >> Do we know the upper limit for size?

  We can set one. E.g. 64G total allocated memory 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