Skip to content
Snippets Groups Projects
  1. Apr 13, 2021
  2. Apr 12, 2021
  3. Apr 08, 2021
    • Deucе's avatar
      Fix sizeof() target. · b0aaf98f
      Deucе authored
      b0aaf98f
    • Deucе's avatar
      When a callback event is handled, get remote_addr · c45983f3
      Deucе authored
      Prevents weird issues with getting remote address.
      c45983f3
    • Rob Swindell's avatar
      Sorted loadfiles() results were corrupted when detail was < normal · 57142e69
      Rob Swindell authored
      When only reading the index (detail = file_detail_index), smb_getfile() just sets the file->name convenience pointer to point to the name in the index. Then when loadfiles() would sort the list, these pointers would not be adjusted (so they would point to the wrong names) resulting in a corrupted file list (e.g. name/size mismatches and no logical sort order).
      
      The solution is to call smb_getfile() on each file *after* the read index records have been sorted.
      
      This also means that the sort-by-name routines needed to always sort using the index name and not the convenience pointer (which is NULL in this case).
      
      While fixing this, I noticed there was no bounds checking in the loadfiles() and loadfilenames() read-loops, so if the indexes happened to be longer than the total_files value from the status header, a buffer under-alloc/overflow would occur and a likely crash as a result. So stop reading the index when the expected maximum number of index records have been read.
      57142e69
  4. Apr 07, 2021
  5. Apr 06, 2021
  6. Apr 05, 2021
  7. Apr 04, 2021
Loading