poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 58069] Biff8RC4 xorShort returns wrong value for unsigned shorts
Date Mon, 22 Jun 2015 22:54:59 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=58069

--- Comment #3 from Andreas Beeker <kiwiwings@apache.org> ---
Created attachment 32850
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=32850&action=edit
Patch for Biff8DecryptingStream

You are right regarding the reading, readUShort - first we haven't implemented
writing for RC4-HSSF yet and I guess even when writing a broader datatype in a
smaller, the sign
doesn't matter, e.g. 200 (int) = 0x000000C8 becomes -56 (byte) and needs to be
converted
back to unsigned when it's read ...

Is the attached patch for Biff8DecryptingStream working for you?

Andi.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message