I remember a long while ago when you could jailbreak iOS with a corrupted font in a pdf.

There was a website jailbreakme you simple slid a slider and you were done.

From Wikipedia

August 1, 2010, exploited a vulnerability in the FreeType library used while rendering PDF files.

https://en.wikipedia.org/wiki/JailbreakMe