also when compiling with VS2005Pro I get

cmsintrp.c(425) : warning C4740: flow in or out of inline asm code 
suppresses global optimization

suggestion, instead of

cmsLinearInterpLUT16()
{
    ...
    asm {
        ...
        cmp
        jxx  isnegative
        ...
    }
    ret(eax)
isnegative:
    asm {
        ...
    }
    ret(eax)
}

maybe do something more like

cmsLinearInterpLUT16()
{
    ...
    DWORD result;
    asm {

        ...
        cmp
        jxx  isnegative

ispostive:
        ...
        mov dword [result],eax
        jmp end_of_asm

isnegative:
        ...
        mov dword [result],eax
        jmp end_of_asm

 end_of_asm:
    }
    return result;
}

Louis Solomon
www.SteelBytes.com


----- Original Message ----- 
From: "Louis Solomon [SteelBytes]" <[EMAIL PROTECTED]>
To: "lcms-user" <lcms-user@lists.sourceforge.net>
Sent: Tuesday, August 15, 2006 11:11 PM
Subject: [Lcms-user] 1.16b


>
> cmsTakeProductDesc() is risking buffer overflow into Name[] when calling
> cmsReadICCText()
>
>
> Louis Solomon
> www.SteelBytes.com
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job 
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Lcms-user mailing list
> Lcms-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lcms-user 


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to