_EncryptionStream.read() does not properly handle b < 0 · Issue #26 · aws/aws-encryption-sdk-python (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

@mattsb42-aws

Description

@mattsb42-aws

Problem

read() for b < 0 should readall. Currently, it will attempt to process a read of a negative value of bytes; it will only readall if b is None.

Solution

Sanitize b < 0 to None.

Metadata

Metadata

Labels

Development

No branches or pull requests

Issue actions