[ 
https://issues.apache.org/jira/browse/THRIFT-5891?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hasnain Lakhani updated THRIFT-5891:
------------------------------------
    Description: 
This was discovered while fuzzing Rust code - see <TODO: Update PR link>

If you have a structure with an optional field (set to None) in memory, and you 
serialize then deserialize it, it comes back as Some(default_value). This seems 
incorrect, but at the same time it's potentially a breaking change so needs 
some thought before fixing.

  was:
This was discovered while fuzzing - see <TODO: Update PR link>

If you have a structure with an optional field (set to None) in memory, and you 
serialize then deserialize it, it comes back as Some(default_value). This seems 
incorrect, but at the same time it's potentially a breaking change so needs 
some thought before fixing.


> Optional fields don't correctly round trip
> ------------------------------------------
>
>                 Key: THRIFT-5891
>                 URL: https://issues.apache.org/jira/browse/THRIFT-5891
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Rust - Compiler
>            Reporter: Hasnain Lakhani
>            Priority: Minor
>
> This was discovered while fuzzing Rust code - see <TODO: Update PR link>
> If you have a structure with an optional field (set to None) in memory, and 
> you serialize then deserialize it, it comes back as Some(default_value). This 
> seems incorrect, but at the same time it's potentially a breaking change so 
> needs some thought before fixing.



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

Reply via email to