Vladimir Mihailenco
Vladimir Mihailenco
Minimal reproducible example that uses cgo: https://gist.github.com/vmihailenco/a1d0df3690636beba652
Probably django-any can somehow detect such case and throw exception, because current behavior (infinitive loop) is not very friendly.
> Fields retain the entered value even on error I am not sure that this is the right thing, because that value does not pass validation. Can you please check...
If you can, change the code to `msg2[208] = &md`. Proper fix requires changes to the library.
Yes, you got the right idea. Ideally, the library should handle such situations better automatically...
Hi, The smaller reproducer looks like this: ```go package main import ( "bytes" "fmt" v4 "github.com/vmihailenco/msgpack/v4" v5 "github.com/vmihailenco/msgpack/v5" ) func main() { var ret interface{} b, _ := v4.Marshal(map[string]interface{}{ "2":...
Do you have a link to the code?
@tmm1 I am looking into implementing a function decorator that does common nil checks (ideally during encoder initialization). See [nilAwareDecoder](https://github.com/vmihailenco/msgpack/blob/v5/decode_value.go#L150-L169) and [this commit](https://github.com/vmihailenco/msgpack/commit/19b8e3c898792d65a630aa353df94403ae3550f0) that introduced that change. Should be something...
Perhaps you are looking for https://pkg.go.dev/github.com/vmihailenco/msgpack/v5#Encoder.UseCompactInts