Latest image to cause segfault
Status: Alpha
Brought to you by:
joerg10
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.
File causing segfault
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)?
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)