Uninitialised variables and no Address Space Layout Randomisation led to an exploitable vulnerability…