|
From: | Pankaj Sharma |
Subject: | [Bug-readline] NULL dereferences may leads to segmentation fault in readline-6.2/histexpand.c and readline-6.2/search.c |
Date: | Mon, 02 Dec 2013 12:16:36 +0000 (GMT) |
Hi,
Release: readline-6.2
Machine : Linux 2.6.32-220.el6.x86_64
Explanation:
There are 3 issues, are identified for NULL dereferences may leads to segmentation fault in below function with respective file:
file name:
1. calling " char * get_history_event (string, caller_index, delimiting_quote)", it Dereferencing a pointer that might be null "entry" by "called current_history ();" in file :readline-6.2/histexpand.c
2. calling " make_history_line_current (HIST_ENTRY*) ", it Dereferencing a pointer that might be null "entry" by "called current_history ();" in file :readline-6.2/search.c
3. and when calling "int rl_history_search_internal (count, dir) int count, dir ; ", it Dereferencing a pointer that might be null "temp" by "called current_history (); "in file :readline-6.2/search.c
Solution:
So ,I have applied a fixes for NULL Check .the respective patches has been attached.
Please review it and give your concern.
---
Regards,
Pankaj Sharma, Ravish Sachdeva
Samsung India Electronics Pvt. Ltd.
|
readline-6.2.patch
Description: Binary data
[Prev in Thread] | Current Thread | [Next in Thread] |