Correct buffer length checking
Correct buffer length checking

The buffer length checking does not perform correctly if a buffer is
passed in that is exactly the correct length.

jimsch/cn-cbor,jimsch/cn-cbor,jimsch/cn-cbor