Menu

#2 Crash in Zunearc

1.0
closed
None
2016-04-30
2016-04-30
No

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';

Discussion

  • Yannick Erb

    Yannick Erb - 2016-04-30
    • status: open --> closed
     
  • Yannick Erb

    Yannick Erb - 2016-04-30

    Fixed, thanks a lot Matthias for tracking ot down

     

Log in to post a comment.