Crash in Zunearc
Brought to you by:
yannickaros
I have a crash in Zunearc 1.4 which I could track down to this:
void AddFile(char *Archive) { ================ vol has 32 bytes ================ char vol[32]; ... ================== len is set to 127 ================== ULONG len = MAX(127, AROS_BSTR_strlen(dlist->dol_Name)); ============================================= 127 bytes are copyied into the 32 byte buffer ============================================= for (i=0; i<len; i++) vol[i] = name[i]; vol[len] = '\0'; ======================== the same for the volumes ========================= ULONG len = MAX(127, AROS_BSTR_strlen(dlist->dol_Name)); for (i=0; i<len; i++) vol[i] = name[i]; vol[len] = '\0';
Fixed, thanks a lot Matthias for tracking ot down