Fix stack corruption when sending multiple MMC/SD commands in Linux.

This commit is contained in:
2020-12-13 20:33:36 +00:00
parent 37385a245f
commit 97cb61eca6
3 changed files with 26 additions and 20 deletions

View File

@@ -268,9 +268,6 @@ namespace Aaru.Core.Devices.Dumping
if(blocksToRead > _maximumReadable)
blocksToRead = (ushort)_maximumReadable;
// TODO: This command execution is corrupting the stack
supportsCmd23 = false;
if(supportsCmd23 && blocksToRead > 1)
{
sense = _dev.ReadWithBlockCount(out cmdBuf, out _, 0, blockSize, 1, byteAddressed, timeout,