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
The function: cbor_read_object calls always *cursor->addr.bytestring.len = len; so that I get a nullptr exception. If I understand that correctly, the function can not use .addr.bytestring.* if a parent is present with a type of CborAttrStructObjectType.
Hello,
I Want to parse a CBOR Payload into an own
struct image[]
.The CBOR Payload looks like that:
I try to use the macros CBORATTR_STRUCT_ARRAY and CBORATTR_STRUCT_OBJECT
with different object types (This is based on this testcase):
The
struct image
:The function:
cbor_read_object
calls always*cursor->addr.bytestring.len = len;
so that I get a nullptr exception. If I understand that correctly, the function can not use.addr.bytestring.*
if aparent
is present with a type ofCborAttrStructObjectType
.To solve this problem I added a if statement:
The text was updated successfully, but these errors were encountered: