Research Article

Assisting in Auditing of Buffer Overflow Vulnerabilities via Machine Learning

Algorithm 2

Patch of CVE-2016-9537 in Algorithm 1.
if(bytes_per_pixel sizeof(swapbuff))
TIFFError(“reverseSamplesBytes”,“bytes_per_pixel too large”);
return ;