On Saturday 24 May 2014 14:16:42 Sven Eckelmann wrote:
The read_file function is rather complex and cluttered with different functionality. One of it is to provide a line_ptr of a single line to the caller. The caller trusts the return code for a SUCCESS of this function and tries to access the line_ptr. But a failed getline may lead to an NULL-line_ptr. The caller tries to dereference this NULL pointer and causes an segfault.
Signed-off-by: Sven Eckelmann sven@narfation.org
functions.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Applied in revision 51b3e92.
Thanks, Marek