dlareklami / tesseract-ocr

Automatically exported from code.google.com/p/tesseract-ocr
Other
0 stars 0 forks source link

Ingored return value of fseek function call in ccutil/helpers.h at line 42 #1107

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Please take a look at ccutil/helpers.h at line 42:

 if (fgetc(file) != '\n') fseek(file, -1, SEEK_CUR);

Calling function "fseek" without checking return value. The library function 
may fail and return an error code.

Best regards and many thanks

Martin Ettl

Original issue reported on code.google.com by ettl.mar...@gmail.com on 12 Feb 2014 at 3:05

GoogleCodeExporter commented 9 years ago
Not much that can be done if it does return an error here.
This code will get rewritten for the next version anyway.

Original comment by theraysm...@gmail.com on 24 Apr 2014 at 1:06

GoogleCodeExporter commented 9 years ago

Original comment by theraysm...@gmail.com on 24 Apr 2014 at 1:06