aws / aws/aws-encryption-sdk-python
Fix max frame size
- Lingua principale
- Python
- Stelle
- 255
- Fork
- 92
- Merge medio
- 2g 17h
- PR unite (30g)
- 2
Descrizione
## Problem
Per the message format specification, the frame size is an unsigned 32-bit integer. No other limits are set on this value. As such, the max frame size is `2^32 - 1`, not `2^31 - 1` as currently defined. It looks like this snuck in as an implementation detail from the Java client, where the frame size is limited by `MAX_INT`.
## Solution
Fix the defined value to be `2^32 - 1` and add tests that verify that frames of size `2^31 - 1 < frame_size <= 2^32 - 1` work correctly.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia individuando la dimensione massima del frame definita e i test che coprono la codifica, la decodifica o la validazione dei frame. Verifica il comportamento attuale ai limiti, quindi aggiorna il valore e aggiungi la copertura per le dimensioni superiori a 2^31 - 1 fino a 2^32 - 1; il lavoro è completato quando questi frame funzionano correttamente e i test esistenti hanno esito positivo.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- security
- Tipo di issue
- Bug
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100