lnd/macaroons
Olaoluwa Osuntokun 6e3abdfd14
macaroons: ensure all bytes read from db are copied before returning
This commit is a precautionary commit put in place in order to ensure
that the logic of macaroon retrieval doesn’t run into a bug triggered
by returning a reference into bolt’s active memory map. This can arise
if one returns a pointer directly read from the database. We seek to
avoid this by instead ensuring all byte slices are fully copied before
returning.
2017-08-23 11:34:43 -07:00
..
auth.go macaroons: expand doc strings and comments within package 2017-08-22 00:52:48 -07:00
service.go macaroons: expand doc strings and comments within package 2017-08-22 00:52:48 -07:00
store.go macaroons: ensure all bytes read from db are copied before returning 2017-08-23 11:34:43 -07:00