Projects STRLCPY LIEF Commits e0086cef
🤬
  • fix the bug in symbol.section_number to section

  • Loading...
  • 逸程 committed 3 months ago
    e0086cef
    1 parent 5f0ff709
  • ■ ■ ■ ■ ■ ■
    src/PE/Parser.cpp
    skipped 547 lines
    548 548   }
    549 549   
    550 550   if (symbol.section_number() > 0 &&
    551  - static_cast<uint32_t>(symbol.section_number()) < binary_->sections_.size()) {
    552  - symbol.section_ = binary_->sections_[symbol.section_number()].get();
     551 + static_cast<uint32_t>(symbol.section_number()) <= binary_->sections_.size()) {
     552 + symbol.section_ = binary_->sections_[symbol.section_number()-1].get();
    553 553   }
    554 554   
    555 555   for (uint32_t i = 0; i < raw_symbol.NumberOfAuxSymbols; ++i) {
    skipped 637 lines
Please wait...
Page is in error, reload to recover