Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
95 user(s) are online (73 user(s) are browsing Forums)

Members: 0
Guests: 95

more...

Support us!

Recent OS4 Files
OS4Depot.net

Report message:*
 

Re: Horny Source code on Github

Subject: Re: Horny Source code on Github
by kas1e on 2020/1/19 16:01:05

@mr2

Debug version needs there only for get right crashlog with poining out on line where it crashes. But you figured that out already :)

It crashes there then:

if (schliessen) {
        
STRPTR str NULL;
        
IIntuition->GetAttr(GETFILE_FullFile, (Object *)setgad[GAD_PHONOLITHPROJ], (uint32 *)&str);
            if (
schliessen) {
        
STRPTR str NULL;
        
IIntuition->GetAttr(GETFILE_FullFile, (Object *)setgad[GAD_PHONOLITHPROJ], (uint32 *)&str);
        
strncpy(lied.phonolithprojektstr1024);

        
ErneuereLinks();
        
HoleFensterObjpos(setfensterobjSET);
        
IIntuition->ClearMenuStrip(setfenster);
        
RA_CloseWindow(setfensterobj);
        
setfenster NULL;
        
AktualisierePortChooserListe();
    }
    if (
schliessen) {
        
STRPTR str NULL;
        
IIntuition->GetAttr(GETFILE_FullFile, (Object *)setgad[GAD_PHONOLITHPROJ], (uint32 *)&str);
        
strncpy(lied.phonolithprojektstr1024);

        
ErneuereLinks();
        
HoleFensterObjpos(setfensterobjSET);
        
IIntuition->ClearMenuStrip(setfenster);
        
RA_CloseWindow(setfensterobj);
        
setfenster NULL;
        
AktualisierePortChooserListe();
    }


        
ErneuereLinks();
        
HoleFensterObjpos(setfensterobjSET);
        
IIntuition->ClearMenuStrip(setfenster);
        
RA_CloseWindow(setfensterobj);
        
setfenster NULL;
        
AktualisierePortChooserListe();
    }


Crashed line are strncpy(lied.phonolithprojekt, str, 1024); , so someone with good coding skills need to fix that. Imho its all about the same issue about which gcc warn us before, just there it happens in another place, but all related to size of buffers probably.


Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project