You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Emmanuel Lécharny (Jira)" <ji...@apache.org> on 2026/09/29 07:20:00 UTC

[jira] [Commented] (DIRAPI-488) Serialize.deserializeInt sign-extends bytes, corrupting stored lengths

    [ https://issues.apache.org/jira/browse/DIRAPI-488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18120587#comment-18120587 ] 

Emmanuel Lécharny commented on DIRAPI-488:
------------------------------------------

Found by Claude

> 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
>            Priority: Minor
>             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: dev-unsubscribe@directory.apache.org
For additional commands, e-mail: dev-help@directory.apache.org