[asterisk-bugs] [Asterisk 0015720]: opendir() return code is not checked in last_message_index()
Asterisk Bug Tracker
noreply at bugs.digium.com
Fri Aug 14 11:21:07 CDT 2009
The following issue has been SUBMITTED.
======================================================================
https://issues.asterisk.org/view.php?id=15720
======================================================================
Reported By: tobias_e
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 15720
Category: Applications/app_voicemail
Reproducibility: always
Severity: crash
Priority: normal
Status: new
Asterisk Version: 1.6.1.4
Regression: No
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Request Review:
======================================================================
Date Submitted: 2009-08-14 11:21 CDT
Last Modified: 2009-08-14 11:21 CDT
======================================================================
Summary: opendir() return code is not checked in
last_message_index()
Description:
In last_message_index() opendir() is called without a check if the call
failed, causing asterisk to segfault if it failed:
msgdir = opendir(dir);
while ((msgdirent = readdir(msgdir))) {
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2009-08-14 11:21 tobias_e New Issue
2009-08-14 11:21 tobias_e Asterisk Version => 1.6.1.4
2009-08-14 11:21 tobias_e Regression => No
2009-08-14 11:21 tobias_e SVN Branch (only for SVN checkouts, not tarball
releases) => N/A
======================================================================
More information about the asterisk-bugs
mailing list