2012/9/18 Puneet Khunteta <khunteta.pun...@gmail.com>:
> Hello,

Hi,

> I observed that when i use a sc_decompress() call on a Big Endian OS ( Linux
> with Arm Processor), i got a error code return -1400.
> Where as it works perfectly for the window ( Little Endian) OS.
> I have used the same certificate file to de-compress on both devices.
>
>  nRet = sc_decompress(outbuff, (size_t *)&nOutBuffLen, Inbuff, nInBuffLen,
> COMPRESSION_AUTO);

I don't know what the type of nOutBuffLen is but it is very dangerous
to cast pointers.
If nOutBuffLen has not the same size as size_t your code is bogus.

Bye

-- 
 Dr. Ludovic Rousseau
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to