[bug #24986] crash at startup because of using uninitialized variable
- From: Zdenek Sojka <INVALID NOREPLY gnu org>
- To: Zdenek Sojka <zsojka seznam cz>, mc-devel gnome org
- Subject: [bug #24986] crash at startup because of using uninitialized variable
- Date: Tue, 02 Dec 2008 20:39:59 +0000
URL:
<http://savannah.gnu.org/bugs/?24986>
Summary: crash at startup because of using uninitialized
variable
Project: GNU Midnight Commander
Submitted by: zsojka
Submitted on: Tue 02 Dec 2008 08:39:58 PM GMT
Category: None
Severity: 3 - Normal
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Release: 4.6.2-pre1
Operating System: GNU/Linux
_______________________________________________________
Details:
Hello,
mc crashes at startup (SIGSEGV) on my system after uninitialized variable is
passed to tgetstr() in tty.c : 230.
Initializing that variable to NULL fixes the problem for me.
I will provide any further info if needed.
Attached - patch and showcase (forcing non-NULL value to crash)
(diffs against currect CVS)
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Tue 02 Dec 2008 08:39:58 PM GMT Name: startup_crash_fix.diff Size:
218B By: zsojka
<http://savannah.gnu.org/bugs/download.php?file_id=16968>
-------------------------------------------------------
Date: Tue 02 Dec 2008 08:39:58 PM GMT Name:
force_invalid_value_to_crash.diff Size: 270B By: zsojka
<http://savannah.gnu.org/bugs/download.php?file_id=16969>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?24986>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]