aws / aws/aws-encryption-sdk-python

potential issue with large reads on nonframed messages

Ouverte
#53 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
bug
Langage dominant
Python
Étoiles
255
Forks
92
Merge moyen
2 j 17 h
PR mergées (30 j)
2

Description

In tracking down an issue in an unrelated codebase, I discovered that at least in some cases, passing more than 2GiB to the pyca/cryptography `Cipher.update()` methods can cause issues with the underlying OpenSSL implementation.

This is not an issue with framed messages because our max frame size is 2GiB, but could be an issue for nonframed messages larger than 2GiB.

We should add tests that check for this edge case, and if it is an issue we can add chunking logic.

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Start by reproducing the reported behavior with more than 2GiB passed to the pyca/cryptography Cipher.update() methods for a nonframed message, and compare it with framed messages. Add regression coverage for the edge case; done means large nonframed messages work reliably, with chunking logic added if the underlying OpenSSL issue is confirmed.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
python
Domaine
cryptography
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
45/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.