cfengine/core — pull request #202 by shaunamarie (2012-10-16 07:54:14+00:00)
Title: Issue 1384 - cf-agent hangs in call to fgets in function: CfReadLine.

Using getline in place of fgets, as it is safer and because fgets cannot detect or handle corrupted
file data, such as NULL within a line. Implement checking for a NULL or corrupted file pointer. Also
adding unit tests that verify specific cases, such as an empty file or NULL file pointer are handled.
These tests can be customized to verify how CfReadLine will handle various forms of corrupted lines
within a file.