Bug 679253 - segmentation fault in cmd_unselect()
Summary: segmentation fault in cmd_unselect()
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: cyrus-imapd
Version: 5.8
Hardware: All
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Michal Hlavinka
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-22 03:37 UTC by Masahiro Matsuya
Modified: 2018-11-14 14:48 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-07-21 10:32:40 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:1075 0 normal SHIPPED_LIVE cyrus-imapd bug fix update 2011-07-21 10:32:35 UTC

Description Masahiro Matsuya 2011-02-22 03:37:10 UTC
Description of problem:

There is a bug in cmd_unselect(), which leads a segmentation fault.

void cmd_unselect(char *tag)
{
    if (backend_current) {
        ...
        backend_current = NULL; ## set NULL to backend_current

        /* remove backend_current from the protgroup */
        protgroup_delete(protin, backend_current->in); 
                                ## access backend_current->in and segfault

Upstream has a fix for this issue.

http://git.cyrusimap.org/cyrus-imapd/commit/?h=cyrus-imapd-2.3&id=375d5d27cd112ae53684f1a1599d987c4a82984b

Version-Release number of selected component (if applicable):
cyrus-imapd-2.3.7-7.el5_4.3

How reproducible:
Always

Steps to Reproduce:
1. run unselect command on proxy mode
  
Actual results:
segmentation fault

Expected results:
segmentaion fault doesn't occur.

Comment 4 errata-xmlrpc 2011-07-21 10:32:40 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-1075.html

Comment 5 errata-xmlrpc 2011-07-21 12:20:08 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-1075.html


Note You need to log in before you can comment on or make changes to this bug.