A heap out-of-bounds write exists in the `h264 context reset()` function within libfreerdp/codec/h264.c. The issue occurs when new dimensions are stored before the YUV planes are reallocated. Remote peers can trigger an increase in surface height, causing the `avc420 compress()` function to write frames that exceed the size of the luma and chroma planes, leading to heap memory corruption or process crashes.