Hi all,
I encounter a problem that LzmaCustomDecompressLib is not working if compiled 
by Clang into IA32. But it works fine with GCC49.
The sources are very complex and I see no significant constructions that may be 
differ from gcc to clang.
Can anybody point me what to look?
The version is 4.65 while original sources already at 9.2 version. Can we 
switch to recent version?

Symptoms: 
-------
  PrintString ("BFV decompress: DestinationSize = %x, ScratchSize = %x\n", 
(UINTN) DestinationSize, (UINTN) ScratchSize);
  Status =  LzmaUefiDecompress (
    (VOID *)(UINTN)(EFILDR_HEADER_ADDRESS + EFILDRImage->Offset),
    EFILDRImage->Length,
    (VOID *)(UINTN)EFI_DECOMPRESSED_BUFFER_ADDRESS, 
    (VOID *)(UINTN)((EFI_DECOMPRESSED_BUFFER_ADDRESS + DestinationSize + 
0x1000) & 0xfffff000)
    );
  

-------
It prints "BFV decompress: DestinationSize = 2A0000, ScratchSize = 10000" and 
then crash QEMU.
Same, compiled by gcc is working.

Sergey
------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to