Menu

#2073 Typo in ExtHandler.cpp

None
open-accepted
nobody
None
5
2017-07-25
2017-07-25
robyschek
No

The ext handler occasionally fails to open some files.

An excerpt from Archive/ExtHandler.cpp from line #462:

if (Is64Bit())
{
  HI_32(150, NumBlocks);
  // HI_32(154, NumBlocksSuper);
  HI_32(0x158, NumFreeBlocks);
}

Here we have decimal 150 instead of hex 0x150, 150(0x96) points into s_last_mounted buffer of ext4_super_block and if the last mount string happens to be longer than 14 bytes we get garbage in the hi dword of NumBlocks.

Discussion

  • robyschek

    robyschek - 2017-07-25

    Неre is a patch aganst the latest public sources на всякий случай.

     
  • Igor Pavlov

    Igor Pavlov - 2017-07-25

    Thanks for report!
    I'll fix it in next version.

     
  • Igor Pavlov

    Igor Pavlov - 2017-07-25
    • status: open --> open-accepted
    • Group: -->
     

Log in to post a comment.