Provide appropriate casts for ptr assignment where a
pointer variable is used to hold an integer.
tesseract 1.0 will then link on x86_64-linux-gnu, but
seg fault when running
./tesseract phototest.tif tmp batch
when add_variable(.... certainty_threshold) assumes it
can assign to the float (sizeof(float) == 4) with a
pointer value (sizeof(void *) == 8) which clobbers
the allocate function pointer which then causes the
next strsave to fail.
Log in to post a comment.