frankmorgner/OpenSC — comment on commit 39adeb7b865b2a910ee18c94f4f24a5303ac225e
File: src/libopensc/reader-pcsc.c line 1703
By LudovicRousseau:

This memcpy() copies 2 bytes from &ui16 to &rbuf[parsed].

But ui16 is not initialized and contains gargage. Why copy this value? Maybe you want to do the reverse and get the ui16 value from rbuf[parsed]?

I am afraid this construct will not work the same on little and big endian CPU. Same comment for the other memcpy() of this function.