Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
77 user(s) are online (60 user(s) are browsing Forums)

Members: 0
Guests: 77

more...

Support us!

Headlines

Report message:*
 

Re: break an app at need it time to see current stack trace of it.

Subject: Re: break an app at need it time to see current stack trace of it.
by kas1e on 2021/1/31 8:20:23

@salas00

Yeah, tried like this:

template<int BPP> static void shifttexture(uchar RESTRICT srcuint swuint shuint strideuchar RESTRICT dstuint dwuint dh)
{
    
uint wfrac sw/dwhfrac sh/dhwshift 0hshift 0;

    
//while(dw<<wshift < sw) wshift++;
    
while (wshift < (sizeof(dw)*8) && (dw << wshift) < sw) {
        
wshift++;
    }

    
//while(dh<<hshift < sh) hshift++;
    
while (hshift < (sizeof(dh)*8) && (dh << hshift) < sh) {
        
hshift++;
    }

    
uint tshift wshift hshift;
    for(
uchar *yend = &src[sh*stride]; src yend;)
    {
        for(
uchar *xend = &src[sw*BPP], *xsrc srcxsrc xendxsrc += wfrac*BPPdst += BPP)
        {
            
uint t[BPP] = {0};
            for(
uchar *ycur xsrc, *xend = &ycur[wfrac*BPP], *yend = &src[hfrac*stride];
                
ycur yend;
                
ycur += stridexend += stride)
            {
                for(
uchar *xcur ycurxcur xendxcur += BPP)
                    
loopi(BPPt[i] += xcur[i];
            }
            
loopi(BPPdst[i] = t[i] >> tshift;
        }
        
src += hfrac*stride;
    }
}


And this time not stuck, but crash instead on "loopi(BPP) dst[i] = t[i] >> tshift;"

Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project