int main()
{
    check_file("heap_overflow_1.tga");
    check_file("heap_overflow_2.tga");

    return gdNumFailures();
}
The software reads data past the end, or before the beginning, of the intended buffer.