mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-07 19:45:07 +02:00
BaseTools: Fix UEFI and Tiano Decompression logic issue
https://bugzilla.tianocore.org/show_bug.cgi?id=1317 This is a regression issue caused by 041d89bc0f0119df37a5fce1d0f16495ff905089. In Decode() function, once mOutBuf is fully filled, Decode() should return. Current logic misses the checker of mOutBuf after while() loop. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao <liming.gao@intel.com> Cc: Yonghong Zhu <yonghong.zhu@intel.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
This commit is contained in:
parent
114a75ad86
commit
5e45a1fdcf
@ -662,6 +662,12 @@ Returns: (VOID)
|
||||
|
||||
BytesRemain--;
|
||||
}
|
||||
//
|
||||
// Once mOutBuf is fully filled, directly return
|
||||
//
|
||||
if (Sd->mOutBuf >= Sd->mOrigSize) {
|
||||
return ;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2682,6 +2682,12 @@ Returns: (VOID)
|
||||
|
||||
BytesRemain--;
|
||||
}
|
||||
//
|
||||
// Once mOutBuf is fully filled, directly return
|
||||
//
|
||||
if (Sd->mOutBuf >= Sd->mOrigSize) {
|
||||
goto Done ;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user