Projects STRLCPY GoReSym Commits 6eedc548
🤬
  • ■ ■ ■ ■
    debug/pe/file.go
    skipped 98 lines
    99 99   // Read string table.
    100 100   f.StringTable, err = readStringTable(&f.FileHeader, sr)
    101 101   if err != nil {
    102  - return nil, err
     102 + f.StringTable = nil // this isn't fatal
    103 103   }
    104 104   
    105 105   // Read symbol table.
    skipped 520 lines
  • ■ ■ ■ ■
    debug/pe/string.go
    skipped 41 lines
    42 42   return nil, fmt.Errorf("fail to read string table length: %v", err)
    43 43   }
    44 44   // string table length includes itself
    45  - if l <= 4 {
     45 + if l <= 4 || l >= 0x40000000 {
    46 46   return nil, nil
    47 47   }
    48 48   l -= 4
    skipped 23 lines
Please wait...
Page is in error, reload to recover