[Bug-apl] No check for error in file_io.cc, operation 8
From:
Elias Mårtenson
Subject:
[Bug-apl] No check for error in file_io.cc, operation 8
Date:
Sun, 12 Jan 2014 20:18:58 +0800
When fgets() is called on line 420, the return value is assigned to the variable s, but the value is not checked for NULL, which is returned if an error occurs or the end of file was reached.
I can see some pretty weird behaviour coming out of this, since an end-of-file will result in old (or random) data being returned instead.
Regards,
Elias
[Prev in Thread]
Current Thread
[Next in Thread]
[Bug-apl] No check for error in file_io.cc, operation 8,
Elias Mårtenson<=