On decryption our envelope_detector returned []byte{} on nil values instead leaving nil. MySQL encoded differently empty strings and NULL values. NULL values should have 0xfb value. So on Acra side when it receive null value as 0xfb then it changed to empty array and encode it as LengthEncoded String or Integer that are incorrect.
So in this PR removed processing null data in crypto envelope. If it will be empty array, it will be returned as empty array too.
On decryption our envelope_detector returned
[]byte{}
onnil
values instead leavingnil
. MySQL encoded differently empty strings and NULL values. NULL values should have 0xfb value. So on Acra side when it receive null value as 0xfb then it changed to empty array and encode it as LengthEncoded String or Integer that are incorrect.So in this PR removed processing null data in crypto envelope. If it will be empty array, it will be returned as empty array too.
Checklist