Emmanuel Lécharny created DIRAPI-488:
----------------------------------------

             Summary: Serialize.deserializeInt sign-extends bytes, corrupting 
stored lengths
                 Key: DIRAPI-488
                 URL: https://issues.apache.org/jira/browse/DIRAPI-488
             Project: Directory Client API
          Issue Type: Bug
    Affects Versions: 2.1.8
            Reporter: Emmanuel Lécharny
             Fix For: 2.1.9


A component persists an _Ava_ whose _upName_ serializes to 200 bytes.
On deserialize, _deserializeInt_ returns -56, _deserializeBytes_ returns 
*EMPTY_BYTES*, the position advances incorrectly, and subsequent fields are 
read from wrong offsets — yielding a silently different *DN*/*value* than was 
stored, with no exception.




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to