This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Function fds_stat never returns

Hi

I've implemented support for the FStorage and the FDS in our application. In some cases it happens, that the function "fds_stat" does not return.

The reason can be found in the subfunction "dirty_records_stat". If an invalid header is found the pointer p_rec is not increased and the while loop will never be left.

I assume that there is an increase of the pointer missing?

Regards Adrian

Parents
  • Has there been any update to this? Simply removing the "else," but leaving the code in place such that the pointer is always incremented, appears to resolve the issue. It appears that even a dirty record seems to break this function. I understand that if a header is actually invalid, it would be difficult to handle, but dirty headers are perfectly valid.

Reply
  • Has there been any update to this? Simply removing the "else," but leaving the code in place such that the pointer is always incremented, appears to resolve the issue. It appears that even a dirty record seems to break this function. I understand that if a header is actually invalid, it would be difficult to handle, but dirty headers are perfectly valid.

Children
No Data
Related