You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Index-Out-Of-Bounds panic when using #[serde(skip_serializing_if = "Option::is_none")] #226
while trying to serialize an instance such as X { y: None, z: Some(0)} using Writer::append_ser(..), it panics with an index-out-of-bounds error pointing to: #/src/ser_schema.rs:376:45
RCA:
Serde allows for field skipping using the skip_serializing_if directive.
current implementation assumes that schema field count matchs the number of serializer.serialize(..) calls 100%.
Use of unsafe random-access on a vec, panics when the assumption breaks.
Activity
fix apache#226: Index-Out-Of-Bounds panic when using #[serde(skip_ser…
fix apache#226: Index-Out-Of-Bounds panic when using #[serde(skip_ser…
fix #226: Index-Out-Of-Bounds panic when using #[serde(skip_serializi…
fix apache#226: Index-Out-Of-Bounds panic when using #[serde(skip_ser…
Issue apache#226: Serialize the RecordField's default when skipping a…
fix #226: Index-Out-Of-Bounds panic when using #[serde(skip_serializi…