• Zhenqing, Hu's avatar
    Fix bug 6445 · 94a9e169
    Zhenqing, Hu authored
    Root cause: when calling imread to read the pgm file, when returning with success reading file, the destructor will free the resource which used by memcpy, but in the code, the resource calculation was not correct, therefore, it will cause memory corruption during resource free.
    94a9e169
grfmt_pxm.cpp 14.6 KB