Skip to content

Stop reading printf templates at the size limit - #327

Open
dajiaohuang wants to merge 1 commit into
rhash:masterfrom
dajiaohuang:fix-audit-317-template-limit
Open

dajiaohuang wants to merge 1 commit into
rhash:masterfrom
dajiaohuang:fix-audit-317-template-limit

Conversation

@dajiaohuang

Copy link
Copy Markdown
Contributor

Fixes #317.

The template reader now checks the next chunk against the remaining size allowance and stops as soon as the limit would be reached.

Validation: tests/test_template_limit.py keeps a FIFO writer open after sending 65536 bytes. The base continues waiting for input; this Linux/GCC 13.3 build reports the size error and exits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stop reading a printf template after the configured size limit

1 participant