[Bug] Remove all slice indexing in Plaintext
and Record
from console
and circuit
#1472
Labels
bug
Something isn't working
🐛 Bug Report
Remove all slice indexing in
Plaintext
andRecord
fromconsole
andcircuit
.There are many indices accessed directly instead of calling
.get()
which can cause unintentional panics (no it is not from poor engineering) when decrypting records that don't belong to the caller.Note: in the real-world this case will not be hit, as the scanner is designed to first check if
.is_owner()
before calling.decrypt()
. The lack of the owner check in decrypt was originally made to significantly reduce the runtime cost.The text was updated successfully, but these errors were encountered: