Closed janbrummer closed 5 months ago
Please add a test to showcase how this can corrupt a db and that it does not happen with this patch.
Please add a test to showcase how this can corrupt a db and that it does not happen with this patch.
Could you take this one over? I do have some higher priority stuff on my stack and this blocks Secrets.
Please add a test to showcase how this can corrupt a db and that it does not happen with this patch.
Could you take this one over? I do have some higher priority stuff on my stack and this blocks Secrets.
Sure, thanks for looking into it!! Make sure I am able to push to this branch.
@Evidlo Hi, this is ready for review. For context, this is corrupting databases on Secrets https://gitlab.gnome.org/World/secrets/-/issues/537.
In case a keyfile as BytesIO has been read before, the next read will be empty. We need to ensure that we are reading the data from the beginning.
Add seek to start to fix it.