CVE-2021-36414: heap-buffer-overflow MP4Box
Table of contents:
CVE-2021-36414
A heap-buffer-overflow has occurred when running program MP4Box,which leads to a Deny of Service caused by dividing zero without sanity check,this can reproduce on the lattest commit.
Here: the main problem is dividing into zero

Assigning block_size:
block_size = ent ? ent->sampleDelta : 160;
- This line uses the conditional (ternary) operator to assign a value to
block_size. - It checks if
entis notNULL.- If
entis valid (i.e., notNULL),block_sizeis assigned the value ofent->sampleDelta. - If
entisNULL,block_sizeis assigned a default value of160.
- If
Fix

https://github.com/gpac/gpac/commit/6007c7145eb0fcd29fe05b6e5983a065b42c6b21
Way of finding
Bug find out by fuzzing checks.