# heap 0

## Challenge Description

Are overflows just a stack concern?

Download the binary [here](https://artifacts.picoctf.net/c_tethys/29/chall).

Download the source [here](https://artifacts.picoctf.net/c_tethys/29/chall.c).

***

## Solution

The size of the input is 32 bytes, so give some input that is more than 32 to characters too overwrite the safe var value and get the flag.

<figure><img src="https://2035863894-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjvlUrxK6i7ZNmn3d6e8B%2Fuploads%2F5jxVbGQqfe5g6erNVJhL%2Fimage.png?alt=media&#x26;token=4f756da5-b11e-42bf-873e-6cb851737f26" alt=""><figcaption></figcaption></figure>

Flag: `picoCTF{my_first_heap_overflow_c3935a08}`
