Bug 239147

Summary: bug: vararg function called true a wrong function pointer
Product: [Fedora] Fedora Reporter: Rafael Ávila de Espíndola <rafael>
Component: ufrawAssignee: Nils Philippsen <nphilipp>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 6   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 0.11 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-06-04 04:16:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
patch that is include in cvs none

Description Rafael Ávila de Espíndola 2007-05-05 10:22:58 UTC
Description of problem:
The function ufraw_message is varargs, but it is passed to cmsSetErrorHandler
that expects a two argument function.

This bug is fixed is CVS. They have a new function:

int lcms_message(int ErrorCode, const char *ErrorText)
{
    /* Possible ErrorCode:
     * LCMS_ERRC_WARNING        0x1000
     * LCMS_ERRC_RECOVERABLE    0x2000
     * LCMS_ERRC_ABORTED        0x3000 */
    (void)ErrorCode;
    ufraw_message(UFRAW_ERROR, "%s", ErrorText);
    return 1; /* Tell lcms that we handled the error */
}

That is passed to cmsSetErrorHandler.

Version-Release number of selected component (if applicable):
0.11

How reproducible:
Create an error condition. Like setup an icc file and then move it. On amd64 the
program will crash when loading an image.

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Rafael Ávila de Espíndola 2007-05-05 10:26:47 UTC
Created attachment 154198 [details]
patch that is include in cvs

Comment 2 Nils Philippsen 2007-05-24 16:51:25 UTC
I've build updated packages for fc6, f7 and devel.

Comment 3 Fedora Update System 2007-06-04 04:16:11 UTC
ufraw-0.11-8.fc7 has been pushed to the Fedora 7 stable repository.  If problems still persist, please make note of it in this bug report.