It is correct that your sample does not crash. But it does not set the string read to the correct contents from the file and takes ages to execute. So the bug is clearly related to file_str_read.

Please don't triple post.


Always learn from history, to be sure you make the same mistakes again...