Skip to the task
Layout
Back to classic view

You are looking at lesson 12. Your place is still lesson 8, task 1: Memory.

CHECKTask 12 of 20 · step 6: Drills: check yourself

Will ASan catch it?

count = 31, capacity = 32. Will ASan catch squares.data[31]? And squares.data[32]?

Stuck?

[31] – no: the place is in the block, just garbage. [32] – yes: heap-buffer-overflow. ASan guards the block's bounds, not your count.