cn_cbor_encoder_write returns -1 on error. In several cases any
non-zero result was treated as success. In two cases, a -1 result
would be converted to size_t and returned when a 0 result should
be returned.
Coverage increased (+0.01%) to 68.747% when pulling 1ce08c74469ce6423ded9cf96f30bb2ecd940a02 on sbertin-telular:encoder_write_result into e8427268ab18ff53fb383f9c8abcb75bcab31ca9 on cose-wg:master.
cn_cbor_encoder_write returns -1 on error. In several cases any non-zero result was treated as success. In two cases, a -1 result would be converted to size_t and returned when a 0 result should be returned.