Ignore:
Timestamp:
Dec 28, 2009, 2:16:16 PM (16 years ago)
Author:
Herwig Bauernfeind
Message:

divers fix for Ticket #111 and memory leak in os2ea.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.3.x/source/lib/os2ea.c

    r255 r353  
    310310                free(pgea2list);
    311311        }
    312         if (pgea2list)
     312        if (pfea2list)
    313313        {
    314314                free(pfea2list);
     
    380380                        }
    381381                }
     382                // had to be added to avoid crash in case of broken extended attributes
     383                if (pfea->oNextEntryOffset > 0x10000)
     384                {
     385                        DEBUG(0, ("Broken Extended Attributes detected for: %s:%d\n", path ? path : "null", file));
     386                        break;
     387                }
    382388                if (!pfea->oNextEntryOffset)
    383389                {
Note: See TracChangeset for help on using the changeset viewer.