ZDenko,

I checked out the latest tesseract code and updated to branch 3.05. I see 
that the int64_t area bug is already fixed (thanks!). I also see that the 
buffer read overrun is partially fixed. There is this line 
in ReadAllBoxes():

box_data.push_back('\0');

Since the memory will have to be deleted and reallocated, this will be 
quite inefficient. That is why I added this line to LoadDataFromFile():

data->reserve(size + 1);

I'm willing to make the change in a feature branch then create the pull 
request. I tried to create a branch in github but apparently I don't have 
branch creation privilege. I thought about forking but I'm not familiar 
with how that works, or if it would even be appropriate. Can you either 
make the change yourself or grant me branch creation privilege in the repo 
so I can make the change in a branch then create a pull request?

By the way, I checked out master branch and it also has the same problem 
in LoadDataFromFile().

-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tesseract-ocr+unsubscr...@googlegroups.com.
To post to this group, send email to tesseract-ocr@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/307a7e38-bb5d-4870-ac12-29c735c3c9f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to