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
This is happening in dump.go +423 in the reflect.Slice case of the big switch and is happening because addr is 0 due to adding a zero pointer mark just after this when addr is zero from a previous non-pointer value. The fix is to only conditionally add pointer marks when addr is non-zero.
It turns out there is a better fix and that this was due to the approach used in #5; in cases where the unpacked value is a []T, then you don't get an addr, so in that case use the address of the first element if it exists.
The following code incorrectly hides non-repeated map entries.
Output:
go-spew handles this correctly, so I must have damaged something at some point.
The text was updated successfully, but these errors were encountered: