cossacklabs / acra

Database security suite. Database proxy with field-level encryption, search through encrypted data, SQL injections prevention, intrusion detection, honeypots. Supports client-side and proxy-side ("transparent") encryption. SQL, NoSQL.
https://www.cossacklabs.com/acra/
Apache License 2.0
1.32k stars 128 forks source link

Fix int4 decoding/encoding #630

Closed Lagovas closed 1 year ago

Lagovas commented 1 year ago

Found that we incorrectly decode signed int4 values by checking value of last byte instead of last bit that represents sign of integer. Fixed and added tests that verify it. P.S. additionally fixed some golint issues that blocks acra-ee

Checklist