Skip to content

Emptish objects fail to roundtrip cbor marshal & unmarshal #10

@dignifiedquire

Description

@dignifiedquire

Trying some simple edge cases and got these issues

Emptyish objects that fail to round trip

(fmt.Printf("%s - %s\n", obj, reflect.TypeOf(obj)))

  • [] - interface[]{}: panic: cborEncoder stack overpopped (marshal)
  • [<nil>] - interface[]{}: Invalid majorByte: 0xff (unmarshal)
  • <nil> - %!s(<nil)): panic: cborEncoder stack overpopped (marshal)

(Setup is as described in #9)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions