#14 Latest image to cause segfault

open
nobody
None
5
2006-10-26
2006-10-26
Anonymous
No

I've just started scanning spam images and have come
across an image that is causing gocr to segfault when
trying to scan it. I've applied all the patches and it
doesn't seem to help.

I'm running RHEL4 clone with latest packages.

Discussion

  • Nobody/Anonymous

    File causing segfault

     
  • Joerg Schulenburg

    Logged In: YES
    user_id=42379

    Can you give more info?
    Debugging it?
    I can not reproduce the bug (dont have RHEL4). Is it
    probably connected with isupper(>255)?

     
  • Nobody/Anonymous

    Logged In: NO

    I got it too with RH9. Quick debug shows the problem at line 829 in detect.c:

    if (box2->y0-((box2->x1)*dy/dx)
    < (JOB->res.lines.m1[box2->line]+JOB->res.lines.m2[box2->line])/2
    && islower(box2->tac[0])

    box2->tac[0] at segfault is 0xfb00, so it's a problem with islower(>255)

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks