aws / aws/aws-encryption-sdk-python

Fix max frame size

オープン
#130 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug good first issue
主要言語
Python
スター
255
フォーク
92
平均マージ
2日 17時間
マージ済み PR(30日)
2

説明

## 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.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、定義されている最大フレームサイズと、フレームのエンコード、デコード、または検証を対象とするテストを見つけます。現在の境界動作を確認してから、値を更新し、2^31 - 1 より大きく 2^32 - 1 以下のサイズを対象とするカバレッジを追加します。これらのフレームが正しく動作し、既存のテストがすべて成功すれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
security
issue の種類
バグ
難易度
2/5
見積もり時間
1〜3時間
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。